java.lang.Object
com.minecolonies.core.network.messages.server.colony.building.fields.FarmFieldPlotResizeMessage
All Implemented Interfaces:
IMessage

public class FarmFieldPlotResizeMessage extends Object implements IMessage
Message to change the farmer field plot size.
  • Constructor Details

    • FarmFieldPlotResizeMessage

      public FarmFieldPlotResizeMessage()
      Forge default constructor
    • FarmFieldPlotResizeMessage

      public FarmFieldPlotResizeMessage(int size, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos position)
      Parameters:
      size - the new radius of the field plot
      direction - the specified direction for the new radius
      position - the field position.
  • Method Details

    • onExecute

      public void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer)
      Description copied from interface: IMessage
      Executes message action.
      Specified by:
      onExecute in interface IMessage
      Parameters:
      ctxIn - network context of incoming message
      isLogicalServer - whether message arrived at logical server side
    • toBytes

      public void toBytes(net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IMessage
      Writes message data to buffer.
      Specified by:
      toBytes in interface IMessage
      Parameters:
      buf - network data byte buffer
    • fromBytes

      public void fromBytes(net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IMessage
      Reads message data from buffer.
      Specified by:
      fromBytes in interface IMessage
      Parameters:
      buf - network data byte buffer