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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
feed
(net.minecraft.world.item.ItemStack stack, int target) Increases the amount of coins the Gimmighoul has been fed.int
getValue()
net.minecraft.network.chat.Component
void
readFromNBT
(net.minecraft.nbt.CompoundTag nbt) void
setValue
(int value) void
writeToNBT
(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:
writeToNBT
in classExtraStats
-
readFromNBT
public void readFromNBT(net.minecraft.nbt.CompoundTag nbt) - Specified by:
readFromNBT
in classExtraStats
-
copy
- Specified by:
copy
in classExtraStats
-
getValue
public int getValue()- Specified by:
getValue
in classExtraStats
-
setValue
public void setValue(int value) - Specified by:
setValue
in classExtraStats
-
getValueName
public net.minecraft.network.chat.Component getValueName()- Specified by:
getValueName
in classExtraStats
-