Class ColonyTextureStyleMessage
java.lang.Object
com.minecolonies.core.network.messages.server.AbstractColonyServerMessage
com.minecolonies.core.network.messages.server.colony.ColonyTextureStyleMessage
- All Implemented Interfaces:
IMessage
Message to set the colony texture style.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorColonyTextureStyleMessage(IColony colony, String style) Change the colony style from the client to the serverside. -
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, IColony colony) protected voidtoBytesOverride(net.minecraft.network.FriendlyByteBuf buf) Transformation to a byteStream.Methods inherited from class com.minecolonies.core.network.messages.server.AbstractColonyServerMessage
fromBytes, fromBytesAbstractOverride, getExecutionSide, onExecute, ownerOnly, permissionNeeded, toBytes, toBytesAbstractOverride
-
Constructor Details
-
ColonyTextureStyleMessage
public ColonyTextureStyleMessage()Default constructor -
ColonyTextureStyleMessage
Change the colony style from the client to the serverside.- Parameters:
colony- the colony the player changed the style in.style- the list of patterns they set in the banner picker
-
-
Method Details
-
onExecute
protected void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer, IColony colony) - Specified by:
onExecutein classAbstractColonyServerMessage
-
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.
-