mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 22:34:44 +00:00
19 lines
418 B
Java
19 lines
418 B
Java
package noppes.npcs.api.roles;
|
|
|
|
import net.minecraft.entity.INpc;
|
|
|
|
/**
|
|
* Base interface for all NPC roles (Trader, Follower, Bank, Mailman, Transporter).
|
|
*/
|
|
public interface IRole {
|
|
|
|
/** @return the NPC this role is assigned to. */
|
|
INpc getNpc();
|
|
|
|
/**
|
|
* @return the role type ordinal.
|
|
* 0: None, 1: Trader, 2: Follower, 3: Bank, 4: Transporter, 5: Mailman.
|
|
*/
|
|
int getType();
|
|
}
|