mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 21:59:11 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -2,9 +2,17 @@ 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();
|
||||
}
|
||||
Reference in new issue
Block a user