Class ColonyListMessage
java.lang.Object
com.minecolonies.core.network.messages.client.colony.ColonyListMessage
- All Implemented Interfaces:
IMessage
Add or Update a AbstractBuilding.View to a ColonyView on the client.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor used when registering theColonyListMessage(List<IColony> colonies) Creates a message to handle colony views. -
Method Summary
Modifier and TypeMethodDescriptionvoidfromBytes(@NotNull net.minecraft.network.FriendlyByteBuf buf) Reads message data from buffer.voidonExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Executes message action.voidtoBytes(@NotNull net.minecraft.network.FriendlyByteBuf buf) Writes message data to buffer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.network.IMessage
getExecutionSide
-
Constructor Details
-
ColonyListMessage
public ColonyListMessage()Empty constructor used when registering the -
ColonyListMessage
Creates a message to handle colony views.
-
-
Method Details
-
fromBytes
public void fromBytes(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageReads message data from buffer. -
toBytes
public void toBytes(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageWrites message data to buffer. -
onExecute
public void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Description copied from interface:IMessageExecutes message action.
-