Class OpenBuildWindowMessage
java.lang.Object
com.minecolonies.core.network.messages.client.OpenBuildWindowMessage
- All Implemented Interfaces:
IMessage
- Direct Known Subclasses:
OpenDecoBuildWindowMessage,OpenPlantationFieldBuildWindowMessage
Message to open the build window, for example for decorations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedOpenBuildWindowMessage(net.minecraft.core.BlockPos pos, String packName, String path, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) Create a new message. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IMessagecreateWorkOrderMessage(net.minecraft.core.BlockPos builder) voidfromBytes(net.minecraft.network.FriendlyByteBuf buf) Reads message data from buffer.final @NotNull net.minecraftforge.fml.LogicalSideWhich sides is message able to be executed at.final voidonExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Executes message action.voidtoBytes(net.minecraft.network.FriendlyByteBuf buf) Writes message data to buffer.
-
Field Details
-
pos
protected net.minecraft.core.BlockPos posTown hall position to create building on. -
path
The colony name. -
packName
The structure pack name. -
rotation
protected net.minecraft.world.level.block.Rotation rotationThe rotation. -
mirror
protected boolean mirrorIf mirrored.
-
-
Constructor Details
-
OpenBuildWindowMessage
protected OpenBuildWindowMessage() -
OpenBuildWindowMessage
protected OpenBuildWindowMessage(net.minecraft.core.BlockPos pos, String packName, String path, net.minecraft.world.level.block.Rotation rotation, net.minecraft.world.level.block.Mirror mirror) Create a new message.- Parameters:
pos- the position the deco will be anchored at.packName- the pack of the deco.path- the path in the pack.
-
-
Method Details
-
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. -
getExecutionSide
@NotNull public final @NotNull net.minecraftforge.fml.LogicalSide getExecutionSide()Description copied from interface:IMessageWhich sides is message able to be executed at.- Specified by:
getExecutionSidein interfaceIMessage- Returns:
- CLIENT or SERVER or null (for both)
-
onExecute
public final void onExecute(net.minecraftforge.network.NetworkEvent.Context ctxIn, boolean isLogicalServer) Description copied from interface:IMessageExecutes message action. -
createWorkOrderMessage
-