Class PlayerData
java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.PlayerData
- All Implemented Interfaces:
ISaveData
Player data for certain event items.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.CompoundTag var1) void
receivedGift
(int year) Marks that the player has received a gift box.void
writeToNBT
(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:
writeToNBT
in interfaceISaveData
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag var1) - Specified by:
readFromNBT
in 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.
-