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

public class MeltanStats extends ExtraStats
Keeps track of the number of ingots fed to Meltan.
  • Field Details

    • nuggetsFed

      public int nuggetsFed
  • Constructor Details

    • MeltanStats

      public MeltanStats()
    • MeltanStats

      public MeltanStats(int nuggetsFed)
  • Method Details

    • feed

      public int feed(net.minecraft.world.item.ItemStack stack, int target)
      Parameters:
      stack - The Iron Nugget, Ingot, or Block item stack
      target - The target Iron Nugget count
      Returns:
      The target Iron Nugget count minus any leftover 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