Class ClientboundOpenScreenPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.inventory.ClientboundOpenScreenPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundOpenScreenPacket(int containerId, ContainerType type, net.kyori.adventure.text.Component title) ClientboundOpenScreenPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintnet.kyori.adventure.text.ComponentgetTitle()getType()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundOpenScreenPacketwithContainerId(int containerId) @NonNull ClientboundOpenScreenPacketwithTitle(net.kyori.adventure.text.Component title) @NonNull ClientboundOpenScreenPacketwithType(ContainerType type) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundOpenScreenPacket
public ClientboundOpenScreenPacket(io.netty.buffer.ByteBuf in) -
ClientboundOpenScreenPacket
public ClientboundOpenScreenPacket(int containerId, ContainerType type, net.kyori.adventure.text.Component title)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getContainerId
public int getContainerId() -
getType
-
getTitle
public net.kyori.adventure.text.Component getTitle() -
equals
-
canEqual
-
hashCode
-
toString
-
withContainerId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTitle
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-