Class GimmighoulStats
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.ExtraStats
com.pixelmonmod.pixelmon.api.pokemon.stats.extraStats.GimmighoulStats
Keeps track of the number of coins given to Gimmighoul.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()intfeed(net.minecraft.world.item.ItemStack stack, int target) Increases the amount of coins the Gimmighoul has been fed.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
-
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 stacktarget- 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:
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
-