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) booleanGets whether the packet should run on an async game thread rather than blocking the network (Netty) thread.toString()withAction(TeamAction action) withCollisionRule(@Nullable CollisionRule collisionRule) withDisplayName(@Nullable net.kyori.adventure.text.Component displayName) withFriendlyFire(boolean friendlyFire) withNameTagVisibility(@Nullable NameTagVisibility nameTagVisibility) withPlayerPrefix(@Nullable net.kyori.adventure.text.Component playerPrefix) withPlayers(@Nullable String @Nullable [] players) withPlayerSuffix(@Nullable net.kyori.adventure.text.Component playerSuffix) withSeeFriendlyInvisibles(boolean seeFriendlyInvisibles) withTeamName(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
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
-
shouldRunOnGameThread
public boolean shouldRunOnGameThread()Description copied from interface:PacketGets whether the packet should run on an async game thread rather than blocking the network (Netty) thread. Packets that qualify for this are usually packets with an ensureRunningOnSameThread call at the top of their packet listener method in the Minecraft code. Packets which need extra attention because they aren't "fully" handled async are marked using // GAME THREAD DETAIL comments in the MCProtocolLib code.- Specified by:
shouldRunOnGameThreadin interfacePacket- Returns:
- Whether the packet be handled async from the Netty thread.
-
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
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 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 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 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 ClientboundSetPlayerTeamPacket withNameTagVisibility(@Nullable NameTagVisibility nameTagVisibility) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCollisionRule
- 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
- 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).
-