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, 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) ServerboundSetStructureBlockPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatgetMode()getName()org.cloudburstmc.math.vector.Vector3ilonggetSeed()org.cloudburstmc.math.vector.Vector3igetSize()intgetX()intgetY()intgetZ()inthashCode()booleanbooleanbooleanbooleanisStrict()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundSetStructureBlockPacketwithAction(UpdateStructureBlockAction action) @NonNull ServerboundSetStructureBlockPacketwithIgnoreEntities(boolean ignoreEntities) @NonNull ServerboundSetStructureBlockPacketwithIntegrity(float integrity) @NonNull ServerboundSetStructureBlockPacketwithMetadata(String metadata) @NonNull ServerboundSetStructureBlockPacketwithMirror(StructureMirror mirror) @NonNull ServerboundSetStructureBlockPacket@NonNull ServerboundSetStructureBlockPacket@NonNull ServerboundSetStructureBlockPacketwithOffset(org.cloudburstmc.math.vector.Vector3i offset) @NonNull ServerboundSetStructureBlockPacketwithRotation(StructureRotation rotation) @NonNull ServerboundSetStructureBlockPacketwithSeed(long seed) @NonNull ServerboundSetStructureBlockPacketwithShowAir(boolean showAir) @NonNull ServerboundSetStructureBlockPacketwithShowBoundingBox(boolean showBoundingBox) @NonNull ServerboundSetStructureBlockPacketwithSize(org.cloudburstmc.math.vector.Vector3i size) @NonNull ServerboundSetStructureBlockPacketwithStrict(boolean strict) @NonNull ServerboundSetStructureBlockPacketwithX(int x) @NonNull ServerboundSetStructureBlockPacketwithY(int y) @NonNull ServerboundSetStructureBlockPacketwithZ(int z) Methods inherited from interface Packet
isPriority, isTerminal
-
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:
serializein interfaceMinecraftPacket
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getAction
-
getMode
-
getName
-
getOffset
public org.cloudburstmc.math.vector.Vector3i getOffset() -
getSize
public 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() -
isStrict
public boolean isStrict() -
equals
-
canEqual
-
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
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMode
- 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(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(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
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRotation
- 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).
-
withStrict
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-