Class ClientboundSetPlayerTeamPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetPlayerTeamPacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetPlayerTeamPacket(io.netty.buffer.ByteBuf in) ClientboundSetPlayerTeamPacket(@NonNull String teamName) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull net.kyori.adventure.text.Component displayName, @NonNull net.kyori.adventure.text.Component playerPrefix, @NonNull net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull NameTagVisibility nameTagVisibility, @NonNull CollisionRule collisionRule, @Nullable TeamColor color) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull net.kyori.adventure.text.Component displayName, @NonNull net.kyori.adventure.text.Component playerPrefix, @NonNull net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull NameTagVisibility nameTagVisibility, @NonNull CollisionRule collisionRule, @Nullable TeamColor color, @NonNull String[] players) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull TeamAction action, @NonNull String[] players) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull TeamAction@Nullable CollisionRule@Nullable TeamColorgetColor()net.kyori.adventure.text.Component@Nullable NameTagVisibilitynet.kyori.adventure.text.ComponentString[]net.kyori.adventure.text.Component@NonNull StringinthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetPlayerTeamPacketwithAction(@NonNull TeamAction action) @NonNull ClientboundSetPlayerTeamPacketwithCollisionRule(@Nullable CollisionRule collisionRule) @NonNull ClientboundSetPlayerTeamPacket@NonNull ClientboundSetPlayerTeamPacketwithDisplayName(net.kyori.adventure.text.Component displayName) @NonNull ClientboundSetPlayerTeamPacketwithFriendlyFire(boolean friendlyFire) @NonNull ClientboundSetPlayerTeamPacketwithNameTagVisibility(@Nullable NameTagVisibility nameTagVisibility) @NonNull ClientboundSetPlayerTeamPacketwithPlayerPrefix(net.kyori.adventure.text.Component playerPrefix) @NonNull ClientboundSetPlayerTeamPacketwithPlayers(String[] players) @NonNull ClientboundSetPlayerTeamPacketwithPlayerSuffix(net.kyori.adventure.text.Component playerSuffix) @NonNull ClientboundSetPlayerTeamPacketwithSeeFriendlyInvisibles(boolean seeFriendlyInvisibles) @NonNull ClientboundSetPlayerTeamPacketwithTeamName(@NonNull String teamName) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetPlayerTeamPacket
-
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(@NonNull @NonNull String teamName, @NonNull @NonNull net.kyori.adventure.text.Component displayName, @NonNull @NonNull net.kyori.adventure.text.Component playerPrefix, @NonNull @NonNull net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull @NonNull NameTagVisibility nameTagVisibility, @NonNull @NonNull CollisionRule collisionRule, @Nullable TeamColor color) -
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(@NonNull @NonNull String teamName, @NonNull @NonNull TeamAction action, @NonNull @NonNull String[] players) -
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(@NonNull @NonNull String teamName, @NonNull @NonNull net.kyori.adventure.text.Component displayName, @NonNull @NonNull net.kyori.adventure.text.Component playerPrefix, @NonNull @NonNull net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull @NonNull NameTagVisibility nameTagVisibility, @NonNull @NonNull CollisionRule collisionRule, @Nullable TeamColor color, @NonNull @NonNull String[] players) -
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(io.netty.buffer.ByteBuf in)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getTeamName
-
getAction
-
getDisplayName
public net.kyori.adventure.text.Component getDisplayName() -
getPlayerPrefix
public net.kyori.adventure.text.Component getPlayerPrefix() -
getPlayerSuffix
public net.kyori.adventure.text.Component getPlayerSuffix() -
getNameTagVisibility
-
getCollisionRule
-
getColor
-
isFriendlyFire
public boolean isFriendlyFire() -
isSeeFriendlyInvisibles
public boolean isSeeFriendlyInvisibles() -
getPlayers
-
equals
-
canEqual
-
hashCode
-
toString
-
withTeamName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAction
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisplayName
public @NonNull ClientboundSetPlayerTeamPacket withDisplayName(net.kyori.adventure.text.Component displayName) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerPrefix
public @NonNull ClientboundSetPlayerTeamPacket withPlayerPrefix(net.kyori.adventure.text.Component playerPrefix) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerSuffix
public @NonNull ClientboundSetPlayerTeamPacket withPlayerSuffix(net.kyori.adventure.text.Component playerSuffix) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNameTagVisibility
public @NonNull ClientboundSetPlayerTeamPacket withNameTagVisibility(@Nullable NameTagVisibility nameTagVisibility) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCollisionRule
public @NonNull ClientboundSetPlayerTeamPacket withCollisionRule(@Nullable CollisionRule collisionRule) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withColor
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFriendlyFire
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSeeFriendlyInvisibles
public @NonNull ClientboundSetPlayerTeamPacket withSeeFriendlyInvisibles(boolean seeFriendlyInvisibles) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-