Class OpenBuildWindowMessage

java.lang.Object
com.ldtteam.common.network.AbstractClientPlayMessage
com.minecolonies.core.network.messages.client.OpenBuildWindowMessage
All Implemented Interfaces:
com.ldtteam.common.network.IClientboundDistributor, net.minecraft.network.protocol.common.custom.CustomPacketPayload
Direct Known Subclasses:
OpenDecoBuildWindowMessage, OpenPlantationFieldBuildWindowMessage

public abstract class OpenBuildWindowMessage extends com.ldtteam.common.network.AbstractClientPlayMessage
Message to open the build window, for example for decorations.
  • 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

    Fields
    Modifier and Type
    Field
    Description
    protected final String
    The structure pack name.
    protected final String
    The colony name.
    protected final net.minecraft.core.BlockPos
    Town hall position to create building on.
    protected final com.ldtteam.structurize.api.RotationMirror
    The rotation and mirror.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    OpenBuildWindowMessage(com.ldtteam.common.network.PlayMessageType<?> type, net.minecraft.core.BlockPos pos, String packName, String path, com.ldtteam.structurize.api.RotationMirror rotMir)
    Create a new message.
    protected
    OpenBuildWindowMessage(net.minecraft.network.RegistryFriendlyByteBuf buf, com.ldtteam.common.network.PlayMessageType<?> type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract com.ldtteam.common.network.AbstractServerPlayMessage
    createWorkOrderMessage(net.minecraft.core.BlockPos builder)
     
    final void
    onExecute(net.neoforged.neoforge.network.handling.IPayloadContext context, net.minecraft.world.entity.player.Player player)
     
    protected void
    toBytes(net.minecraft.network.RegistryFriendlyByteBuf buf)
     
    net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload

    toVanillaClientbound, toVanillaServerbound, type

    Methods inherited from interface com.ldtteam.common.network.IClientboundDistributor

    sendToAllClients, sendToDimension, sendToPlayer, sendToPlayer, sendToPlayersTrackingChunk, sendToPlayersTrackingChunk, sendToTargetPoint, sendToTrackingEntity, sendToTrackingEntityAndSelf
  • Field Details

    • pos

      protected final net.minecraft.core.BlockPos pos
      Town hall position to create building on.
    • path

      protected final String path
      The colony name.
    • packName

      protected final String packName
      The structure pack name.
    • rotationMirror

      protected final com.ldtteam.structurize.api.RotationMirror rotationMirror
      The rotation and mirror.
  • Constructor Details

    • OpenBuildWindowMessage

      protected OpenBuildWindowMessage(com.ldtteam.common.network.PlayMessageType<?> type, net.minecraft.core.BlockPos pos, String packName, String path, com.ldtteam.structurize.api.RotationMirror rotMir)
      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.
    • OpenBuildWindowMessage

      protected OpenBuildWindowMessage(net.minecraft.network.RegistryFriendlyByteBuf buf, com.ldtteam.common.network.PlayMessageType<?> type)
  • Method Details

    • toBytes

      protected void toBytes(net.minecraft.network.RegistryFriendlyByteBuf buf)
    • onExecute

      public final void onExecute(net.neoforged.neoforge.network.handling.IPayloadContext context, net.minecraft.world.entity.player.Player player)
      Specified by:
      onExecute in class com.ldtteam.common.network.AbstractClientPlayMessage
    • createWorkOrderMessage

      protected abstract com.ldtteam.common.network.AbstractServerPlayMessage createWorkOrderMessage(net.minecraft.core.BlockPos builder)
    • type

      public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?> type()
      Specified by:
      type in interface net.minecraft.network.protocol.common.custom.CustomPacketPayload