mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
added get set refuse soul stone
one may want an npc to not be able to be picked up by soul stone in any circumstance
This commit is contained in:
1 parent
9fef65b194
commit
fb0ff50994
4 files changed
+39
-12
No files matched your search
@@ -53,6 +53,7 @@ public class DataAdvanced {
|
||||
public boolean defendFaction = false;
|
||||
public boolean disablePitch = false;
|
||||
|
||||
public boolean refuseSoulStone = false;
|
||||
public String soulStonePlayerName;
|
||||
|
||||
public DataAdvanced(EntityNPCInterface npc) {
|
||||
@@ -85,6 +86,7 @@ public class DataAdvanced {
|
||||
|
||||
compound.setTag("NPCDialogOptions", nbtDialogs(npc.dialogs));
|
||||
|
||||
compound.setBoolean("RefuseSoulStone", refuseSoulStone);
|
||||
compound.setString("SoulStonePlayerName", soulStonePlayerName);
|
||||
|
||||
return compound;
|
||||
@@ -118,6 +120,7 @@ public class DataAdvanced {
|
||||
|
||||
npc.dialogs = getDialogs(compound.getTagList("NPCDialogOptions", 10));
|
||||
|
||||
refuseSoulStone = compound.getBoolean("RefuseSoulStone");
|
||||
soulStonePlayerName = compound.getString("SoulStonePlayerName");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user