Interface IAnimalColonyHandler

All Known Implementing Classes:
AnimalColonyHandler

public interface IAnimalColonyHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable IColony
    Getter for the colony.
    int
    Getter for the colony id.
    void
    onSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> data)
    Called when the entity's data is updated from the server.
    void
    registerWithColony(int colonyID, int citizenID)
    Server-specific update for the EntityAnimal.
    void
    setColonyId(int colonyId)
    Setter for the colony id.
    void
    Update the client side of the citizen entity.
  • Method Details

    • registerWithColony

      void registerWithColony(int colonyID, int citizenID)
      Server-specific update for the EntityAnimal.
      Parameters:
      colonyID - the id of the colony.
      citizenID - the id of the citizen.
    • getColony

      @Nullable @Nullable IColony getColony()
      Getter for the colony.
      Returns:
      the colony.
    • getColonyId

      int getColonyId()
      Getter for the colony id.
      Returns:
      the colony id.
    • setColonyId

      void setColonyId(int colonyId)
      Setter for the colony id.
      Parameters:
      colonyId - the new colonyId.
    • updateColonyClient

      void updateColonyClient()
      Update the client side of the citizen entity.
    • onSyncedDataUpdated

      void onSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> data)
      Called when the entity's data is updated from the server.
      Parameters:
      dataAccessor - The data accessor which contains the updated data.