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(String teamName) ClientboundSetPlayerTeamPacket(String teamName, net.kyori.adventure.text.Component displayName, net.kyori.adventure.text.Component playerPrefix, net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, NameTagVisibility nameTagVisibility, CollisionRule collisionRule, @Nullable TeamColor color) ClientboundSetPlayerTeamPacket(String teamName, net.kyori.adventure.text.Component displayName, net.kyori.adventure.text.Component playerPrefix, net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, NameTagVisibility nameTagVisibility, CollisionRule collisionRule, @Nullable TeamColor color, String[] players) ClientboundSetPlayerTeamPacket(String teamName, TeamAction action, String[] players) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable CollisionRule@Nullable TeamColorgetColor()@Nullable net.kyori.adventure.text.Component@Nullable NameTagVisibility@Nullable net.kyori.adventure.text.Component@Nullable String @Nullable []@Nullable net.kyori.adventure.text.ComponentinthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundSetPlayerTeamPacketwithAction(TeamAction action) @NonNull ClientboundSetPlayerTeamPacketwithCollisionRule(@Nullable CollisionRule collisionRule) @NonNull ClientboundSetPlayerTeamPacket@NonNull ClientboundSetPlayerTeamPacketwithDisplayName(@Nullable net.kyori.adventure.text.Component displayName) @NonNull ClientboundSetPlayerTeamPacketwithFriendlyFire(boolean friendlyFire) @NonNull ClientboundSetPlayerTeamPacketwithNameTagVisibility(@Nullable NameTagVisibility nameTagVisibility) @NonNull ClientboundSetPlayerTeamPacketwithPlayerPrefix(@Nullable net.kyori.adventure.text.Component playerPrefix) @NonNull ClientboundSetPlayerTeamPacketwithPlayers(@Nullable String @Nullable [] players) @NonNull ClientboundSetPlayerTeamPacketwithPlayerSuffix(@Nullable net.kyori.adventure.text.Component playerSuffix) @NonNull ClientboundSetPlayerTeamPacketwithSeeFriendlyInvisibles(boolean seeFriendlyInvisibles) @NonNull ClientboundSetPlayerTeamPacketwithTeamName(String teamName) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetPlayerTeamPacket
-
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(String teamName, net.kyori.adventure.text.Component displayName, net.kyori.adventure.text.Component playerPrefix, net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, NameTagVisibility nameTagVisibility, CollisionRule collisionRule, @Nullable TeamColor color) -
ClientboundSetPlayerTeamPacket
-
ClientboundSetPlayerTeamPacket
public ClientboundSetPlayerTeamPacket(String teamName, net.kyori.adventure.text.Component displayName, net.kyori.adventure.text.Component playerPrefix, net.kyori.adventure.text.Component playerSuffix, boolean friendlyFire, boolean seeFriendlyInvisibles, NameTagVisibility nameTagVisibility, CollisionRule collisionRule, @Nullable TeamColor color, 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 @Nullable net.kyori.adventure.text.Component getDisplayName() -
getPlayerPrefix
public @Nullable net.kyori.adventure.text.Component getPlayerPrefix() -
getPlayerSuffix
public @Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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).
-