Modifier and Type | Field and Description |
---|---|
boolean |
giftOpened
Whether the player has opened a gift box.
|
Constructor and Description |
---|
PlayerData() |
Modifier and Type | Method and Description |
---|---|
boolean |
getWasGifted()
Checks if the player has received a gift box.
|
boolean |
getWasGifted(int year)
Checks if the player has received a gift box.
|
void |
readFromNBT(net.minecraft.nbt.CompoundNBT var1) |
void |
receivedGift(int year)
Marks that the player has received a gift box.
|
void |
writeToNBT(net.minecraft.nbt.CompoundNBT var1) |
public void writeToNBT(net.minecraft.nbt.CompoundNBT var1)
writeToNBT
in interface ISaveData
public void readFromNBT(net.minecraft.nbt.CompoundNBT var1)
readFromNBT
in interface ISaveData
public boolean getWasGifted()
public boolean getWasGifted(int year)
public void receivedGift(int year)