Class RecallCitizenHutMessage
java.lang.Object
com.minecolonies.core.network.messages.server.AbstractColonyServerMessage
com.minecolonies.core.network.messages.server.AbstractBuildingServerMessage<IBuilding>
com.minecolonies.core.network.messages.server.colony.building.RecallCitizenHutMessage
- All Implemented Interfaces:
IMessage
Used to handle citizen recalls to their hut.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty public constructor.RecallCitizenHutMessage(@NotNull AbstractBuildingView building) Creates a message to recall all citizens to their hut. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfromBytesOverride(net.minecraft.network.FriendlyByteBuf buf) Transformation from a byteStream to the variables.protected voidonExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer, @NotNull IColony colony, @NotNull IBuilding building) protected voidtoBytesOverride(net.minecraft.network.FriendlyByteBuf buf) Transformation to a byteStream.Methods inherited from class com.minecolonies.core.network.messages.server.AbstractBuildingServerMessage
errorIfCastFails, fromBytesAbstractOverride, onExecute, toBytesAbstractOverrideMethods inherited from class com.minecolonies.core.network.messages.server.AbstractColonyServerMessage
fromBytes, getExecutionSide, onExecute, ownerOnly, permissionNeeded, toBytes
-
Constructor Details
-
RecallCitizenHutMessage
public RecallCitizenHutMessage()Empty public constructor. -
RecallCitizenHutMessage
Creates a message to recall all citizens to their hut.- Parameters:
building-AbstractBuildingView
-
-
Method Details
-
onExecute
protected void onExecute(@NotNull net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer, @NotNull @NotNull IColony colony, @NotNull @NotNull IBuilding building) - Specified by:
onExecutein classAbstractBuildingServerMessage<IBuilding>
-
toBytesOverride
protected void toBytesOverride(net.minecraft.network.FriendlyByteBuf buf) Description copied from class:AbstractColonyServerMessageTransformation to a byteStream.- Specified by:
toBytesOverridein classAbstractColonyServerMessage- Parameters:
buf- the used byteBuffer.
-
fromBytesOverride
protected void fromBytesOverride(net.minecraft.network.FriendlyByteBuf buf) Description copied from class:AbstractColonyServerMessageTransformation from a byteStream to the variables.- Specified by:
fromBytesOverridein classAbstractColonyServerMessage- Parameters:
buf- the used byteBuffer.
-