public interface ICraving extends net.minecraftforge.registries.IForgeRegistryEntry<ICraving>
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
getCravedItem()
Gets the food ItemStack being craved.
|
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.
|
net.minecraft.item.ItemStack getCravedItem()
void onCravingSatisfied(net.minecraft.entity.player.EntityPlayer player)
player
- The player who satisfied the craving.void onCravingUnsatisifed(net.minecraft.entity.player.EntityPlayer player)
player
- The player who failed to satisfy the craving.