Class ServerboundSetJigsawBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSetJigsawBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetJigsawBlockPacket(io.netty.buffer.ByteBuf in) ServerboundSetJigsawBlockPacket(org.cloudburstmc.math.vector.Vector3i position, net.kyori.adventure.key.Key name, net.kyori.adventure.key.Key target, net.kyori.adventure.key.Key pool, String finalState, String jointType, int selectionPriority, int placementPriority) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.kyori.adventure.key.KeygetName()intnet.kyori.adventure.key.KeygetPool()org.cloudburstmc.math.vector.Vector3iintnet.kyori.adventure.key.KeyinthashCode()voidserialize(io.netty.buffer.ByteBuf out) booleanGets whether the packet should run on an async game thread rather than blocking the network (Netty) thread.toString()withFinalState(String finalState) withJointType(String jointType) withName(net.kyori.adventure.key.Key name) withPlacementPriority(int placementPriority) withPool(net.kyori.adventure.key.Key pool) withPosition(org.cloudburstmc.math.vector.Vector3i position) withSelectionPriority(int selectionPriority) withTarget(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
public ServerboundSetJigsawBlockPacket(io.netty.buffer.ByteBuf in) -
ServerboundSetJigsawBlockPacket
-
-
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() -
getName
public net.kyori.adventure.key.Key getName() -
getTarget
public net.kyori.adventure.key.Key getTarget() -
getPool
public net.kyori.adventure.key.Key getPool() -
getFinalState
-
getJointType
-
getSelectionPriority
public int getSelectionPriority() -
getPlacementPriority
public int getPlacementPriority() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withPosition
- 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).
-
withTarget
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPool
- 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).
-