Custom Effect [WIP]

This commit is contained in:
Kam committed 2025-02-10 14:58:45 -05:00
1 parent 65ac349c08
commit 20a46e6007
31 files changed
+1331 -65

No files matched your search

@@ -65,6 +65,14 @@ import static kamkeel.npcs.network.packets.data.large.ScrollGroupPacket.sendScro
public class NoppesUtilServer {
private static HashMap<String,Quest> editingQuests = new HashMap<String,Quest>();
public static IPlayer getIPlayer(EntityPlayer p) {
return (IPlayer) NpcAPI.Instance().getIEntity(p);
}
public static UUID getUUID(Entity entity) {
return entity instanceof EntityPlayer ? ((EntityPlayer) entity).getGameProfile().getId() : entity.getUniqueID();
}
public static void setEditingNpc(EntityPlayer player, EntityNPCInterface npc){
PlayerData data = PlayerDataController.Instance.getPlayerData(player);
data.editingNpc = npc;