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, MinecraftCodecHelper helper)
    • ServerboundSetStructureBlockPacket

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

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getPosition

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

      @NonNull public @NonNull UpdateStructureBlockAction getAction()
    • getMode

      @NonNull public @NonNull UpdateStructureBlockMode getMode()
    • getName

      @NonNull public @NonNull String getName()
    • getOffset

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

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

      @NonNull public @NonNull StructureMirror getMirror()
    • getRotation

      @NonNull public @NonNull StructureRotation getRotation()
    • getMetadata

      @NonNull public @NonNull String getMetadata()
    • getIntegrity

      public float getIntegrity()
    • getSeed

      public long getSeed()
    • isIgnoreEntities

      public boolean isIgnoreEntities()
    • isShowAir

      public boolean isShowAir()
    • isShowBoundingBox

      public boolean isShowBoundingBox()
    • 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
    • withPosition

      public @NonNull ServerboundSetStructureBlockPacket withPosition(@NonNull @NonNull 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

      public @NonNull ServerboundSetStructureBlockPacket withAction(@NonNull @NonNull UpdateStructureBlockAction action)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMode

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

      public @NonNull ServerboundSetStructureBlockPacket withName(@NonNull @NonNull 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(@NonNull @NonNull 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(@NonNull @NonNull 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(@NonNull @NonNull 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(@NonNull @NonNull 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(@NonNull @NonNull 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).