use of com.minecolonies.api.colony.permissions.PermissionEvent in project minecolonies by ldtteam.
the class BuildingTownHall method serializeToView.
@Override
public void serializeToView(@NotNull final PacketBuffer buf) {
super.serializeToView(buf);
buf.writeBoolean(MineColonies.getConfig().getServer().canPlayerUseAllyTHTeleport.get());
buf.writeInt(permissionEvents.size());
for (final PermissionEvent event : permissionEvents) {
event.serialize(buf);
}
List<IColonyEventDescription> colonyEvents = colony.getEventDescriptionManager().getEventDescriptions();
buf.writeInt(colonyEvents.size());
for (final IColonyEventDescription event : colonyEvents) {
buf.writeUtf(event.getEventTypeId().getPath());
event.serialize(buf);
}
}
Aggregations