public abstract class CravingDefault extends net.minecraftforge.registries.IForgeRegistryEntry.Impl<ICraving> implements ICraving
Constructor and Description |
---|
CravingDefault() |
Modifier and Type | Method and Description |
---|---|
void |
onCravingSatisfied(net.minecraft.entity.player.EntityPlayer player)
Called when the player manages to satisfy their craving.
|
void |
onCravingUnsatisifed(net.minecraft.entity.player.EntityPlayer player)
Called when the player fails to satisfy their craving.
|
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCravedItem
public void onCravingSatisfied(net.minecraft.entity.player.EntityPlayer player)
ICraving
onCravingSatisfied
in interface ICraving
player
- The player who satisfied the craving.public void onCravingUnsatisifed(net.minecraft.entity.player.EntityPlayer player)
ICraving
onCravingUnsatisifed
in interface ICraving
player
- The player who failed to satisfy the craving.