Interface IAnimalColonyHandler
- All Known Implementing Classes:
AnimalColonyHandler
public interface IAnimalColonyHandler
-
Method Summary
Modifier and TypeMethodDescription@Nullable IColonyGetter for the colony.intGetter for the colony id.voidonSyncedDataUpdated(net.minecraft.network.syncher.EntityDataAccessor<?> data) Called when the entity's data is updated from the server.voidregisterWithColony(int colonyID, int citizenID) Server-specific update for the EntityAnimal.voidsetColonyId(int colonyId) Setter for the colony id.voidUpdate 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
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.
-