An Animal.

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.entity.IEntityAnimal;

Extending IEntityAgeable

IEntityAnimal extends IEntityAgeable. That means all functions available to IEntities also are available to IEntityAnimal.



ZenGetter Type
loveCause IPlayer (Can be null!)
isInLove bool


check if an item can be used to breed the animal

Method expects an IItemStack.
Returns a bool.

entAnObj.isBreedingItem(IItemStack itemStack);

Set or Reset in love

First method expects an optional IPlayer object, second nothing.
Returns nothing.

entAnObj.setInLove(@Optional IPlayer player);

Check if another animal can mate with this one.

Method expects an IEntityAnimal object.
Returns a bool.

entAnObj.canMateWith(IEntityAnimal other);