Class ServerboundSetStructureBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetStructureBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetStructureBlockPacket(io.netty.buffer.ByteBuf in) 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 Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfloatgetMode()getName()org.cloudburstmc.math.vector.Vector3iorg.cloudburstmc.math.vector.Vector3ilonggetSeed()org.cloudburstmc.math.vector.Vector3igetSize()inthashCode()booleanbooleanbooleanbooleanisStrict()voidserialize(io.netty.buffer.ByteBuf out) booleanGets whether the packet should run on an async game thread rather than blocking the network (Netty) thread.@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 ServerboundSetStructureBlockPacketwithPosition(org.cloudburstmc.math.vector.Vector3i position) @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) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal
-
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:
serializein interfaceMinecraftPacket
-
shouldRunOnGameThread
public boolean shouldRunOnGameThread()Description copied from interface:PacketGets 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:
shouldRunOnGameThreadin interfacePacket- Returns:
- Whether the packet be handled async from the Netty thread.
-
getPosition
public org.cloudburstmc.math.vector.Vector3i getPosition() -
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
public int hashCode() -
toString
-
withPosition
public @NonNull ServerboundSetStructureBlockPacket withPosition(org.cloudburstmc.math.vector.Vector3i position) - 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).
-