Class ServerboundClientInformationPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.common.serverbound.ServerboundClientInformationPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundClientInformationPacket(io.netty.buffer.ByteBuf in) ServerboundClientInformationPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, List<SkinPart> visibleParts, HandPreference mainHand, boolean textFilteringEnabled, boolean allowsListing, ParticleStatus particleStatus) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintinthashCode()booleanbooleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundClientInformationPacketwithAllowsListing(boolean allowsListing) @NonNull ServerboundClientInformationPacketwithChatColors(boolean chatColors) @NonNull ServerboundClientInformationPacketwithChatVisibility(ChatVisibility chatVisibility) @NonNull ServerboundClientInformationPacketwithLanguage(String language) @NonNull ServerboundClientInformationPacketwithMainHand(HandPreference mainHand) @NonNull ServerboundClientInformationPacketwithParticleStatus(ParticleStatus particleStatus) @NonNull ServerboundClientInformationPacketwithTextFilteringEnabled(boolean textFilteringEnabled) @NonNull ServerboundClientInformationPacketwithViewDistance(int viewDistance) @NonNull ServerboundClientInformationPacketwithVisibleParts(List<SkinPart> visibleParts) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ServerboundClientInformationPacket
public ServerboundClientInformationPacket(io.netty.buffer.ByteBuf in) -
ServerboundClientInformationPacket
public ServerboundClientInformationPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, List<SkinPart> visibleParts, HandPreference mainHand, boolean textFilteringEnabled, boolean allowsListing, ParticleStatus particleStatus)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getLanguage
-
getViewDistance
public int getViewDistance() -
getChatVisibility
-
isChatColors
public boolean isChatColors() -
getVisibleParts
-
getMainHand
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled() -
isAllowsListing
public boolean isAllowsListing() -
getParticleStatus
-
equals
-
canEqual
-
hashCode
-
toString
-
withLanguage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withViewDistance
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChatVisibility
public @NonNull ServerboundClientInformationPacket withChatVisibility(ChatVisibility chatVisibility) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChatColors
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withVisibleParts
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMainHand
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTextFilteringEnabled
public @NonNull ServerboundClientInformationPacket withTextFilteringEnabled(boolean textFilteringEnabled) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAllowsListing
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withParticleStatus
public @NonNull ServerboundClientInformationPacket withParticleStatus(ParticleStatus particleStatus) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-