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:
1whohears committed 2022-05-29 02:46:24 -05:00
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");
}