mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +00:00
Hook Up Linked Item to existing Events
This commit is contained in:
1 parent
f84dd5477d
commit
690f2ca10d
6 files changed
+62
-47
No files matched your search
@@ -74,6 +74,10 @@ public class NoppesUtilServer {
|
||||
return entity instanceof EntityPlayer ? ((EntityPlayer) entity).getGameProfile().getId() : entity.getUniqueID();
|
||||
}
|
||||
|
||||
public static boolean isScriptableItem(Item item){
|
||||
return item == CustomItems.scripted_item || item == CustomItems.linked_item;
|
||||
}
|
||||
|
||||
public static void setEditingNpc(EntityPlayer player, EntityNPCInterface npc){
|
||||
PlayerData data = PlayerDataController.Instance.getPlayerData(player);
|
||||
data.editingNpc = npc;
|
||||
|
||||
Reference in new issue
Block a user