java.lang.Object
com.pixelmonmod.pixelmon.storage.playerData.PlayerData
All Implemented Interfaces:
ISaveData

public class PlayerData extends Object implements ISaveData
Player data for certain event items.
  • Field Details

    • giftOpened

      public boolean giftOpened
      Whether 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 interface ISaveData
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag var1)
      Specified by:
      readFromNBT in interface ISaveData
    • 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.