Class ClientboundContainerSetDataPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.inventory.ClientboundContainerSetDataPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundContainerSetDataPacket(int containerId, int rawProperty, int value) ClientboundContainerSetDataPacket(int containerId, ContainerProperty rawProperty, int value) ClientboundContainerSetDataPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintintgetValue()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundContainerSetDataPacketwithContainerId(int containerId) @NonNull ClientboundContainerSetDataPacketwithRawProperty(int rawProperty) @NonNull ClientboundContainerSetDataPacketwithValue(int value) 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
-
ClientboundContainerSetDataPacket
-
ClientboundContainerSetDataPacket
-
ClientboundContainerSetDataPacket
public ClientboundContainerSetDataPacket(int containerId, int rawProperty, int value)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getContainerId
public int getContainerId() -
getRawProperty
public int getRawProperty() -
getValue
public int getValue() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withContainerId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRawProperty
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withValue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-