Class OpenPlantationFieldBuildWindowMessage
java.lang.Object
com.ldtteam.common.network.AbstractClientPlayMessage
com.minecolonies.core.network.messages.client.OpenBuildWindowMessage
com.minecolonies.core.network.messages.client.OpenPlantationFieldBuildWindowMessage
- All Implemented Interfaces:
com.ldtteam.common.network.IClientboundDistributor,net.minecraft.network.protocol.common.custom.CustomPacketPayload
Message to open the plantation field build window on the client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsFields inherited from class com.minecolonies.core.network.messages.client.OpenBuildWindowMessage
packName, path, pos, rotationMirror -
Constructor Summary
ConstructorsModifierConstructorDescriptionOpenPlantationFieldBuildWindowMessage(net.minecraft.core.BlockPos pos, String packName, String path, com.ldtteam.structurize.api.RotationMirror rotMir) Create a new message.protectedOpenPlantationFieldBuildWindowMessage(net.minecraft.network.RegistryFriendlyByteBuf buf, com.ldtteam.common.network.PlayMessageType<?> type) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.ldtteam.common.network.AbstractServerPlayMessagecreateWorkOrderMessage(net.minecraft.core.BlockPos builder) net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?> type()Methods inherited from class com.minecolonies.core.network.messages.client.OpenBuildWindowMessage
onExecute, toBytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound, typeMethods inherited from interface com.ldtteam.common.network.IClientboundDistributor
sendToAllClients, sendToDimension, sendToPlayer, sendToPlayer, sendToPlayersTrackingChunk, sendToPlayersTrackingChunk, sendToTargetPoint, sendToTrackingEntity, sendToTrackingEntityAndSelf
-
Field Details
-
TYPE
public static final com.ldtteam.common.network.PlayMessageType<?> TYPE
-
-
Constructor Details
-
OpenPlantationFieldBuildWindowMessage
public OpenPlantationFieldBuildWindowMessage(net.minecraft.core.BlockPos pos, String packName, String path, com.ldtteam.structurize.api.RotationMirror rotMir) Create a new message.- Parameters:
pos- the position the plantation field will be anchored at.packName- the pack of the plantation field.path- the path in the pack.
-
OpenPlantationFieldBuildWindowMessage
protected OpenPlantationFieldBuildWindowMessage(net.minecraft.network.RegistryFriendlyByteBuf buf, com.ldtteam.common.network.PlayMessageType<?> type)
-
-
Method Details
-
createWorkOrderMessage
protected com.ldtteam.common.network.AbstractServerPlayMessage createWorkOrderMessage(net.minecraft.core.BlockPos builder) - Specified by:
createWorkOrderMessagein classOpenBuildWindowMessage
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-