Class ServerboundSetJigsawBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetJigsawBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetJigsawBlockPacket(@NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull net.kyori.adventure.key.Key name, @NonNull net.kyori.adventure.key.Key target, @NonNull net.kyori.adventure.key.Key pool, @NonNull String finalState, @NonNull String jointType, int selectionPriority, int placementPriority) ServerboundSetJigsawBlockPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull String@NonNull String@NonNull net.kyori.adventure.key.KeygetName()int@NonNull net.kyori.adventure.key.KeygetPool()@NonNull org.cloudburstmc.math.vector.Vector3iint@NonNull net.kyori.adventure.key.KeyinthashCode()voidserialize(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 ServerboundSetJigsawBlockPacketwithFinalState(@NonNull String finalState) @NonNull ServerboundSetJigsawBlockPacketwithJointType(@NonNull String jointType) @NonNull ServerboundSetJigsawBlockPacketwithName(@NonNull net.kyori.adventure.key.Key name) @NonNull ServerboundSetJigsawBlockPacketwithPlacementPriority(int placementPriority) @NonNull ServerboundSetJigsawBlockPacketwithPool(@NonNull net.kyori.adventure.key.Key pool) @NonNull ServerboundSetJigsawBlockPacketwithPosition(@NonNull org.cloudburstmc.math.vector.Vector3i position) @NonNull ServerboundSetJigsawBlockPacketwithSelectionPriority(int selectionPriority) @NonNull ServerboundSetJigsawBlockPacketwithTarget(@NonNull net.kyori.adventure.key.Key target) 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
-
ServerboundSetJigsawBlockPacket
-
ServerboundSetJigsawBlockPacket
public ServerboundSetJigsawBlockPacket(@NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull @NonNull net.kyori.adventure.key.Key name, @NonNull @NonNull net.kyori.adventure.key.Key target, @NonNull @NonNull net.kyori.adventure.key.Key pool, @NonNull @NonNull String finalState, @NonNull @NonNull String jointType, int selectionPriority, int placementPriority)
-
-
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() -
getName
@NonNull public @NonNull net.kyori.adventure.key.Key getName() -
getTarget
@NonNull public @NonNull net.kyori.adventure.key.Key getTarget() -
getPool
@NonNull public @NonNull net.kyori.adventure.key.Key getPool() -
getFinalState
-
getJointType
-
getSelectionPriority
public int getSelectionPriority() -
getPlacementPriority
public int getPlacementPriority() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withPosition
public @NonNull ServerboundSetJigsawBlockPacket 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).
-
withName
public @NonNull ServerboundSetJigsawBlockPacket withName(@NonNull @NonNull net.kyori.adventure.key.Key name) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTarget
public @NonNull ServerboundSetJigsawBlockPacket withTarget(@NonNull @NonNull net.kyori.adventure.key.Key target) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPool
public @NonNull ServerboundSetJigsawBlockPacket withPool(@NonNull @NonNull net.kyori.adventure.key.Key pool) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFinalState
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withJointType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSelectionPriority
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlacementPriority
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-