Class FarmFieldPlotResizeMessage
java.lang.Object
com.minecolonies.core.network.messages.server.colony.building.fields.FarmFieldPlotResizeMessage
- All Implemented Interfaces:
IMessage
Message to change the farmer field plot size.
-
Constructor Summary
ConstructorsConstructorDescriptionForge default constructorFarmFieldPlotResizeMessage(int size, net.minecraft.core.Direction direction, net.minecraft.core.BlockPos position) -
Method Summary
Modifier and TypeMethodDescriptionvoidfromBytes(net.minecraft.network.FriendlyByteBuf buf) Reads message data from buffer.voidonExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Executes message action.voidtoBytes(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
-
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 plotdirection- the specified direction for the new radiusposition- the field position.
-
-
Method Details
-
onExecute
public void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Description copied from interface:IMessageExecutes message action. -
toBytes
public void toBytes(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageWrites message data to buffer. -
fromBytes
public void fromBytes(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:IMessageReads message data from buffer.
-