Class PlayerData
java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.PlayerData
- All Implemented Interfaces:
ISaveData
Player data for certain event items.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the player has received a gift box.booleangetWasGifted(int year) Checks if the player has received a gift box.voidreadFromNBT(net.minecraft.nbt.CompoundTag var1) voidreceivedGift(int year) Marks that the player has received a gift box.voidwriteToNBT(net.minecraft.nbt.CompoundTag var1)
-
Field Details
-
giftOpened
public boolean giftOpenedWhether the player has opened a gift box.
-
-
Constructor Details
-
PlayerData
public PlayerData()
-
-
Method Details
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag var1) - Specified by:
writeToNBTin interfaceISaveData
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag var1) - Specified by:
readFromNBTin interfaceISaveData
-
getWasGifted
public boolean getWasGifted()Checks if the player has received a gift box.- Returns:
- Whether the player has received a gift box.
-
getWasGifted
public boolean getWasGifted(int year) Checks if the player has received a gift box.- Returns:
- Whether the player has received a gift box.
-
receivedGift
public void receivedGift(int year) Marks that the player has received a gift box.
-