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(int x, int y, int z, 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
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • 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(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

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

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withX

      public @NonNull ServerboundSetStructureBlockPacket withX(int x)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withY

      public @NonNull ServerboundSetStructureBlockPacket withY(int y)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withZ

      public @NonNull ServerboundSetStructureBlockPacket withZ(int z)
      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

      public @NonNull ServerboundSetStructureBlockPacket withName(String name)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOffset

      public @NonNull 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 @NonNull 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

      public @NonNull ServerboundSetStructureBlockPacket withMirror(StructureMirror mirror)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRotation

      public @NonNull 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 @NonNull 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 @NonNull 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 @NonNull 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 @NonNull 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 @NonNull 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 @NonNull 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 @NonNull ServerboundSetStructureBlockPacket withStrict(boolean strict)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).