Class ClientboundUpdateEnabledFeaturesPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.ClientboundUpdateEnabledFeaturesPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundUpdateEnabledFeaturesPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) ClientboundUpdateEnabledFeaturesPacket(net.kyori.adventure.key.Key[] features) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleannet.kyori.adventure.key.Key[]inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()withFeatures(net.kyori.adventure.key.Key[] features) 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, shouldRunOnGameThread
-
Constructor Details
-
ClientboundUpdateEnabledFeaturesPacket
public ClientboundUpdateEnabledFeaturesPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
ClientboundUpdateEnabledFeaturesPacket
public ClientboundUpdateEnabledFeaturesPacket(net.kyori.adventure.key.Key[] features)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getFeatures
public net.kyori.adventure.key.Key[] getFeatures() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withFeatures
public @NonNull ClientboundUpdateEnabledFeaturesPacket withFeatures(net.kyori.adventure.key.Key[] features) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-