Class ServerboundSetStructureBlockPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetStructureBlockPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ServerboundSetStructureBlockPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ServerboundSetStructureBlockPacket

      public ServerboundSetStructureBlockPacket(io.netty.buffer.ByteBuf in)
    • ServerboundSetStructureBlockPacket

      public ServerboundSetStructureBlockPacket(org.cloudburstmc.math.vector.Vector3i position, UpdateStructureBlockAction action, UpdateStructureBlockMode mode, String name, org.cloudburstmc.math.vector.Vector3i offset, org.cloudburstmc.math.vector.Vector3i size, StructureMirror mirror, StructureRotation rotation, String metadata, float integrity, long seed, boolean ignoreEntities, boolean showAir, boolean showBoundingBox, boolean strict)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • shouldRunOnGameThread

      public boolean shouldRunOnGameThread()
      Description copied from interface: Packet
      Gets whether the packet should run on an async game thread rather than blocking the network (Netty) thread. Packets that qualify for this are usually packets with an ensureRunningOnSameThread call at the top of their packet listener method in the Minecraft code. Packets which need extra attention because they aren't "fully" handled async are marked using // GAME THREAD DETAIL comments in the MCProtocolLib code.
      Specified by:
      shouldRunOnGameThread in interface Packet
      Returns:
      Whether the packet be handled async from the Netty thread.
    • getPosition

      public org.cloudburstmc.math.vector.Vector3i getPosition()
    • getAction

      public UpdateStructureBlockAction getAction()
    • getMode

      public UpdateStructureBlockMode getMode()
    • getName

      public String getName()
    • getOffset

      public org.cloudburstmc.math.vector.Vector3i getOffset()
    • getSize

      public org.cloudburstmc.math.vector.Vector3i getSize()
    • getMirror

      public StructureMirror getMirror()
    • getRotation

      public StructureRotation getRotation()
    • getMetadata

      public String getMetadata()
    • getIntegrity

      public float getIntegrity()
    • getSeed

      public long getSeed()
    • isIgnoreEntities

      public boolean isIgnoreEntities()
    • isShowAir

      public boolean isShowAir()
    • isShowBoundingBox

      public boolean isShowBoundingBox()
    • isStrict

      public boolean isStrict()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withPosition

      public ServerboundSetStructureBlockPacket withPosition(org.cloudburstmc.math.vector.Vector3i position)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAction

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMode

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withName

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOffset

      public ServerboundSetStructureBlockPacket withOffset(org.cloudburstmc.math.vector.Vector3i offset)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSize

      public ServerboundSetStructureBlockPacket withSize(org.cloudburstmc.math.vector.Vector3i size)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMirror

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRotation

      public ServerboundSetStructureBlockPacket withRotation(StructureRotation rotation)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMetadata

      public ServerboundSetStructureBlockPacket withMetadata(String metadata)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withIntegrity

      public ServerboundSetStructureBlockPacket withIntegrity(float integrity)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSeed

      public ServerboundSetStructureBlockPacket withSeed(long seed)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withIgnoreEntities

      public ServerboundSetStructureBlockPacket withIgnoreEntities(boolean ignoreEntities)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShowAir

      public ServerboundSetStructureBlockPacket withShowAir(boolean showAir)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShowBoundingBox

      public ServerboundSetStructureBlockPacket withShowBoundingBox(boolean showBoundingBox)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStrict

      public ServerboundSetStructureBlockPacket withStrict(boolean strict)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).