Class ServerboundSetStructureBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetStructureBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetStructureBlockPacket(int x, int y, int z, @NonNull UpdateStructureBlockAction action, @NonNull UpdateStructureBlockMode mode, @NonNull String name, @NonNull org.cloudburstmc.math.vector.Vector3i offset, @NonNull org.cloudburstmc.math.vector.Vector3i size, @NonNull StructureMirror mirror, @NonNull StructureRotation rotation, @NonNull String metadata, float integrity, long seed, boolean ignoreEntities, boolean showAir, boolean showBoundingBox) ServerboundSetStructureBlockPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull UpdateStructureBlockActionfloat@NonNull String@NonNull StructureMirror@NonNull UpdateStructureBlockModegetMode()@NonNull StringgetName()@NonNull org.cloudburstmc.math.vector.Vector3i@NonNull StructureRotationlonggetSeed()@NonNull org.cloudburstmc.math.vector.Vector3igetSize()intgetX()intgetY()intgetZ()inthashCode()booleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundSetStructureBlockPacketwithAction(@NonNull UpdateStructureBlockAction action) @NonNull ServerboundSetStructureBlockPacketwithIgnoreEntities(boolean ignoreEntities) @NonNull ServerboundSetStructureBlockPacketwithIntegrity(float integrity) @NonNull ServerboundSetStructureBlockPacketwithMetadata(@NonNull String metadata) @NonNull ServerboundSetStructureBlockPacketwithMirror(@NonNull StructureMirror mirror) @NonNull ServerboundSetStructureBlockPacketwithMode(@NonNull UpdateStructureBlockMode mode) @NonNull ServerboundSetStructureBlockPacket@NonNull ServerboundSetStructureBlockPacketwithOffset(@NonNull org.cloudburstmc.math.vector.Vector3i offset) @NonNull ServerboundSetStructureBlockPacketwithRotation(@NonNull StructureRotation rotation) @NonNull ServerboundSetStructureBlockPacketwithSeed(long seed) @NonNull ServerboundSetStructureBlockPacketwithShowAir(boolean showAir) @NonNull ServerboundSetStructureBlockPacketwithShowBoundingBox(boolean showBoundingBox) @NonNull ServerboundSetStructureBlockPacketwithSize(@NonNull org.cloudburstmc.math.vector.Vector3i size) @NonNull ServerboundSetStructureBlockPacketwithX(int x) @NonNull ServerboundSetStructureBlockPacketwithY(int y) @NonNull ServerboundSetStructureBlockPacketwithZ(int z) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundSetStructureBlockPacket
public ServerboundSetStructureBlockPacket(io.netty.buffer.ByteBuf in) -
ServerboundSetStructureBlockPacket
public ServerboundSetStructureBlockPacket(int x, int y, int z, @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) - Specified by:
serializein interfaceMinecraftPacket
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getAction
-
getMode
-
getName
-
getOffset
@NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getOffset() -
getSize
@NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getSize() -
getMirror
-
getRotation
-
getMetadata
-
getIntegrity
public float getIntegrity() -
getSeed
public long getSeed() -
isIgnoreEntities
public boolean isIgnoreEntities() -
isShowAir
public boolean isShowAir() -
isShowBoundingBox
public boolean isShowBoundingBox() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif 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
thisif 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
thisif an identical value is passed).
-
withName
- Returns:
- a clone of this object, except with this updated property (returns
thisif 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
thisif 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
thisif 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
thisif 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
thisif an identical value is passed).
-
withMetadata
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIntegrity
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSeed
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIgnoreEntities
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShowAir
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withShowBoundingBox
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-