Integrated Dynamics

Integrated Dynamics

63M Downloads

Feature: More animal/plant commands

BiatuAutMiahn opened this issue ยท 1 comments

commented

How about canShear, canBreed (is ready and/or can breed), Age (animals/plants), and canPlant

commented

Note to self:

  • IShearable#isShearable(ItemStack item, IBlockAccess world, BlockPos pos)

  • EntityLiving#getAge()

  • EntityAgeable#isChild()

  • EntityAgeable#getGrowingAge() == 0 can breed

  • EntityAnimal#isInLove() == 0 is in love

  • EntityAnimal#isBreedingItem(@Nullable ItemStack stack)

  • IPlantable#getPlantType(IBlockAccess world, BlockPos pos) (on an Item)

  • IPlantable#getPlant(IBlockAccess world, BlockPos pos)

  • Block#canSustainPlant(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing direction, IPlantable plantable) (Not possible)

  • Make custom wrapper for plant age. With Block Capabilities (introduce in CommonCaps: BlockCapabilities#getCapability(IBlockAccess world, BlockPos pos, EnumFacing side) : T). AGE capability.