Class ServerboundContainerSlotStateChangedPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundContainerSlotStateChangedPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundContainerSlotStateChangedPacket(int slotId, int containerId, boolean newState) ServerboundContainerSlotStateChangedPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()withContainerId(int containerId) withNewState(boolean newState) withSlotId(int slotId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundContainerSlotStateChangedPacket
public ServerboundContainerSlotStateChangedPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
ServerboundContainerSlotStateChangedPacket
public ServerboundContainerSlotStateChangedPacket(int slotId, int containerId, boolean newState)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getSlotId
public int getSlotId() -
getContainerId
public int getContainerId() -
isNewState
public boolean isNewState() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSlotId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withContainerId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNewState
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-