mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 13:14:44 +00:00
28 lines
742 B
Java
28 lines
742 B
Java
package noppes.npcs.api.entity;
|
|
|
|
import net.minecraft.entity.passive.EntityAnimal;
|
|
import noppes.npcs.api.item.IItemStack;
|
|
|
|
public interface IAnimal<T extends EntityAnimal> extends IEntityLiving<T> {
|
|
/**
|
|
* Checks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on
|
|
* the animal type)
|
|
*/
|
|
boolean isBreedingItem(IItemStack itemStack);
|
|
|
|
/**
|
|
* Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig
|
|
*/
|
|
boolean interact(IPlayer player);
|
|
|
|
void setFollowPlayer(IPlayer player);
|
|
|
|
IPlayer followingPlayer();
|
|
|
|
boolean isInLove();
|
|
|
|
void resetInLove();
|
|
|
|
boolean canMateWith(IAnimal animal);
|
|
}
|