Skip to content

AppleCore v3.1.0

Compare
Choose a tag to compare
@squeek502 squeek502 released this 10 Dec 11:25
· 2 commits to 1.7.10 since this release

Added some features to the API related to block-based foods

  • Added IEdibleBlock with methods to control whether or not Block-based foods can be eaten at max hunger (like ItemFood.alwaysEdible)
    • AppleCore implements IEdibleBlock on BlockCake at runtime, so you can make it always edible by doing ((IEdibleBlock) Blocks.cake).setEdibleAtMaxHunger(true)
  • Added IAppleCoreRegistry (AppleCoreAPI.registry) to register Block <-> Item relationships for Block-based foods that don't use an ItemBlock (e.g. cake)
  • See this wiki page for more information