Class ServerboundSetStructureBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetStructureBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetStructureBlockPacket(@NonNull org.cloudburstmc.math.vector.Vector3i position, @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, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull UpdateStructureBlockActionfloat@NonNull String@NonNull StructureMirror@NonNull UpdateStructureBlockModegetMode()@NonNull StringgetName()@NonNull org.cloudburstmc.math.vector.Vector3i@NonNull org.cloudburstmc.math.vector.Vector3i@NonNull StructureRotationlonggetSeed()@NonNull org.cloudburstmc.math.vector.Vector3igetSize()inthashCode()booleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) booleanGets whether the packet should run on an async game thread rather than blocking the network (Netty) thread.@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 ServerboundSetStructureBlockPacketwithPosition(@NonNull org.cloudburstmc.math.vector.Vector3i position) @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) 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
-
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
- 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
@NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getPosition() -
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
-
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
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).
-