java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.ExtraStats
com.pixelmonmod.pixelmon.api.pokemon.stats.extraStats.GimmighoulStats

public class GimmighoulStats extends ExtraStats
Keeps track of the number of coins given to Gimmighoul.
  • Field Details

    • coinsGiven

      public int coinsGiven
  • Constructor Details

    • GimmighoulStats

      public GimmighoulStats()
    • GimmighoulStats

      public GimmighoulStats(int coinsGiven)
  • Method Details

    • feed

      public int feed(net.minecraft.world.item.ItemStack stack, int target)
      Increases the amount of coins the Gimmighoul has been fed. A negative return value is what triggers coins to be returned to the player.
      Parameters:
      stack - The Gimmighoul Coin item stack
      target - The target Gimmighoul Coin count
      Returns:
      The target Gimmighoul Coin count minus how many coins it has been fed.
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      writeToNBT in class ExtraStats
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      readFromNBT in class ExtraStats
    • copy

      public ExtraStats copy()
      Specified by:
      copy in class ExtraStats
    • getValue

      public int getValue()
      Specified by:
      getValue in class ExtraStats
    • setValue

      public void setValue(int value)
      Specified by:
      setValue in class ExtraStats
    • getValueName

      public net.minecraft.network.chat.Component getValueName()
      Specified by:
      getValueName in class ExtraStats