Class ClientboundSetPlayerTeamPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.scoreboard.ClientboundSetPlayerTeamPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetPlayerTeamPacket(@NonNull String teamName) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull net.kyori.adventure.text.Component displayName, @NonNull net.kyori.adventure.text.Component prefix, @NonNull net.kyori.adventure.text.Component suffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull NameTagVisibility nameTagVisibility, @NonNull CollisionRule collisionRule, @NonNull TeamColor color) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull net.kyori.adventure.text.Component displayName, @NonNull net.kyori.adventure.text.Component prefix, @NonNull net.kyori.adventure.text.Component suffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull NameTagVisibility nameTagVisibility, @NonNull CollisionRule collisionRule, @NonNull TeamColor color, @NonNull String[] players) ClientboundSetPlayerTeamPacket(@NonNull String teamName, @NonNull TeamAction action, @NonNull String[] players) ClientboundSetPlayerTeamPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull TeamAction@Nullable CollisionRulegetColor()net.kyori.adventure.text.Component@Nullable NameTagVisibilityString[]net.kyori.adventure.text.Componentnet.kyori.adventure.text.Component@NonNull StringinthashCode()booleanbooleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @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 ClientboundSetPlayerTeamPacketwithPlayers(String[] players) @NonNull ClientboundSetPlayerTeamPacketwithPrefix(net.kyori.adventure.text.Component prefix) @NonNull ClientboundSetPlayerTeamPacketwithSeeFriendlyInvisibles(boolean seeFriendlyInvisibles) @NonNull ClientboundSetPlayerTeamPacketwithSuffix(net.kyori.adventure.text.Component suffix) @NonNull ClientboundSetPlayerTeamPacketwithTeamName(@NonNull String teamName) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
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 prefix, @NonNull @NonNull net.kyori.adventure.text.Component suffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull @NonNull NameTagVisibility nameTagVisibility, @NonNull @NonNull CollisionRule collisionRule, @NonNull @NonNull 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 prefix, @NonNull @NonNull net.kyori.adventure.text.Component suffix, boolean friendlyFire, boolean seeFriendlyInvisibles, @NonNull @NonNull NameTagVisibility nameTagVisibility, @NonNull @NonNull CollisionRule collisionRule, @NonNull @NonNull TeamColor color, @NonNull @NonNull String[] players) -
ClientboundSetPlayerTeamPacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getTeamName
-
getAction
-
getDisplayName
public net.kyori.adventure.text.Component getDisplayName() -
getPrefix
public net.kyori.adventure.text.Component getPrefix() -
getSuffix
public net.kyori.adventure.text.Component getSuffix() -
isFriendlyFire
public boolean isFriendlyFire() -
isSeeFriendlyInvisibles
public boolean isSeeFriendlyInvisibles() -
getNameTagVisibility
-
getCollisionRule
-
getColor
-
getPlayers
-
equals
-
canEqual
-
hashCode
public int 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).
-
withPrefix
public @NonNull ClientboundSetPlayerTeamPacket withPrefix(net.kyori.adventure.text.Component prefix) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSuffix
public @NonNull ClientboundSetPlayerTeamPacket withSuffix(net.kyori.adventure.text.Component suffix) - 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).
-
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).
-
withPlayers
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-