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 Details

    • getEntity

      T getEntity()
      Returns:
      the backing entity
    • getColonyIdAccessor

      @NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<Integer> getColonyIdAccessor()
      Get the accessor for the colony ID.
    • getAnimalIdAccessor

      @NotNull @NotNull net.minecraft.network.syncher.EntityDataAccessor<Integer> 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

      void setAnimalData(IAnimalData data)
      Set the animal data associated with this managed animal.
    • getOffsetTicks

      default int getOffsetTicks()
      Get the offset ticks for this managed animal.