Interface IManagedAnimal<T extends net.minecraft.world.entity.animal.Animal>
- All Known Implementing Classes:
CavalryHorseEntity
public interface IManagedAnimal<T extends net.minecraft.world.entity.animal.Animal>
-
Method Summary
Modifier and TypeMethodDescriptionGet the animal data associated with this managed animal.Get the animal data view associated with this managed animal.@NotNull net.minecraft.network.syncher.EntityDataAccessor<Integer> Get the accessor for the citizen ID.intGet the colony associated with this managed animal.@NotNull net.minecraft.network.syncher.EntityDataAccessor<Integer> Get the accessor for the colony ID.intGet the unique ID of this managed animal.default intGet the offset ticks for this managed animal.voidsetAnimalData(IAnimalData data) Set the animal data associated with this managed animal.voidsetColonyId(int id) Set the colony associated with this managed animal.voidsetManagedAnimalId(int id) Set the unique ID of this managed animal.
-
Method Details
-
getEntity
T getEntity()- Returns:
- the backing entity
-
getColonyIdAccessor
Get the accessor for the colony ID. -
getAnimalIdAccessor
Get the accessor for the citizen ID. -
getManagedAnimalId
int getManagedAnimalId()Get the unique ID of this managed animal. -
setManagedAnimalId
void setManagedAnimalId(int id) Set the unique ID of this managed animal. -
getColonyId
int getColonyId()Get the colony associated with this managed animal. -
setColonyId
void setColonyId(int id) Set the colony associated with this managed animal. -
getAnimalData
IAnimalData getAnimalData()Get the animal data associated with this managed animal. -
getAnimalDataView
IAnimalDataView getAnimalDataView()Get the animal data view associated with this managed animal. -
setAnimalData
Set the animal data associated with this managed animal. -
getOffsetTicks
default int getOffsetTicks()Get the offset ticks for this managed animal.
-