Class TeamColonyColorChangeMessage

java.lang.Object
com.minecolonies.core.network.messages.server.AbstractColonyServerMessage
com.minecolonies.core.network.messages.server.colony.TeamColonyColorChangeMessage
All Implemented Interfaces:
IMessage

public class TeamColonyColorChangeMessage extends AbstractColonyServerMessage
Message class which manages changing the team color of the colony.
  • Constructor Details

    • TeamColonyColorChangeMessage

      public TeamColonyColorChangeMessage()
      Empty public constructor.
    • TeamColonyColorChangeMessage

      public TeamColonyColorChangeMessage(int colorOrdinal, @NotNull @NotNull IBuildingView building)
      Creates object for the player to handle the color
      Parameters:
      colorOrdinal - the color to set.
      building - view of the building to read data from
  • Method Details

    • fromBytesOverride

      public void fromBytesOverride(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Transformation from a byteStream to the variables.
      Specified by:
      fromBytesOverride in class AbstractColonyServerMessage
      Parameters:
      buf - the used byteBuffer.
    • toBytesOverride

      public void toBytesOverride(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Transformation to a byteStream.
      Specified by:
      toBytesOverride in class AbstractColonyServerMessage
      Parameters:
      buf - the used byteBuffer.
    • onExecute

      protected void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer, IColony colony)
      Specified by:
      onExecute in class AbstractColonyServerMessage