Class MeltanStats
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.ExtraStats
com.pixelmonmod.pixelmon.api.pokemon.stats.extraStats.MeltanStats
Keeps track of the number of ingots fed to Meltan.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()intfeed(net.minecraft.world.item.ItemStack stack, int target) intgetValue()net.minecraft.network.chat.ComponentvoidreadFromNBT(net.minecraft.nbt.CompoundTag nbt) voidsetValue(int value) voidwriteToNBT(net.minecraft.nbt.CompoundTag nbt) Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.stats.ExtraStats
getExtraStats, hasSpecialSetup, init, specialPrep
-
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 stacktarget- 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:
writeToNBTin classExtraStats
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
readFromNBTin classExtraStats
-
copy
- Specified by:
copyin classExtraStats
-
getValue
public int getValue()- Specified by:
getValuein classExtraStats
-
setValue
public void setValue(int value) - Specified by:
setValuein classExtraStats
-
getValueName
public net.minecraft.network.chat.Component getValueName()- Specified by:
getValueNamein classExtraStats
-