Uses of Class
net.minecraft.world.scores.PlayerTeam
Packages that use PlayerTeam
Package
Description
-
Uses of PlayerTeam in net.minecraft.client.gui.spectator.categories
Fields in net.minecraft.client.gui.spectator.categories declared as PlayerTeamModifier and TypeFieldDescriptionprivate final PlayerTeam
TeleportToTeamMenuCategory.TeamSelectionItem.team
Methods in net.minecraft.client.gui.spectator.categories with parameters of type PlayerTeamModifier and TypeMethodDescriptionstatic Optional
<SpectatorMenuItem> TeleportToTeamMenuCategory.TeamSelectionItem.create
(Minecraft minecraft, PlayerTeam team) Constructors in net.minecraft.client.gui.spectator.categories with parameters of type PlayerTeamModifierConstructorDescriptionprivate
TeamSelectionItem
(PlayerTeam team, List<PlayerInfo> players, Supplier<PlayerSkin> iconSkin) -
Uses of PlayerTeam in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer that return PlayerTeam -
Uses of PlayerTeam in net.minecraft.commands.arguments
Methods in net.minecraft.commands.arguments that return PlayerTeamModifier and TypeMethodDescriptionstatic PlayerTeam
TeamArgument.getTeam
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of PlayerTeam in net.minecraft.network.protocol.game
Methods in net.minecraft.network.protocol.game with parameters of type PlayerTeamModifier and TypeMethodDescriptionClientboundSetPlayerTeamPacket.createAddOrModifyPacket
(PlayerTeam team, boolean useAdd) ClientboundSetPlayerTeamPacket.createPlayerPacket
(PlayerTeam team, String playerName, ClientboundSetPlayerTeamPacket.Action action) ClientboundSetPlayerTeamPacket.createRemovePacket
(PlayerTeam team) Constructors in net.minecraft.network.protocol.game with parameters of type PlayerTeam -
Uses of PlayerTeam in net.minecraft.server
Methods in net.minecraft.server with parameters of type PlayerTeamModifier and TypeMethodDescriptionboolean
ServerScoreboard.addPlayerToTeam
(String playerName, PlayerTeam team) void
ServerScoreboard.onTeamAdded
(PlayerTeam playerTeam) void
ServerScoreboard.onTeamChanged
(PlayerTeam playerTeam) void
ServerScoreboard.onTeamRemoved
(PlayerTeam playerTeam) void
ServerScoreboard.removePlayerFromTeam
(String username, PlayerTeam playerTeam) Removes the given username from the given ScorePlayerTeam. -
Uses of PlayerTeam in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type PlayerTeamModifier and TypeMethodDescriptionprivate static int
TeamCommand.deleteTeam
(CommandSourceStack source, PlayerTeam team) private static int
TeamCommand.emptyTeam
(CommandSourceStack source, PlayerTeam team) private static int
TeamCommand.joinTeam
(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> players) private static int
TeamCommand.listMembers
(CommandSourceStack source, PlayerTeam team) private static void
TeamMsgCommand.sendMessage
(CommandSourceStack source, Entity sender, PlayerTeam team, List<ServerPlayer> teamMembers, PlayerChatMessage chatMessage) private static int
TeamCommand.setCollision
(CommandSourceStack source, PlayerTeam team, Team.CollisionRule rule) private static int
TeamCommand.setColor
(CommandSourceStack source, PlayerTeam team, ChatFormatting value) private static int
TeamCommand.setDeathMessageVisibility
(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static int
TeamCommand.setDisplayName
(CommandSourceStack source, PlayerTeam team, Component value) private static int
TeamCommand.setFriendlyFire
(CommandSourceStack source, PlayerTeam team, boolean value) private static int
TeamCommand.setFriendlySight
(CommandSourceStack source, PlayerTeam team, boolean value) private static int
TeamCommand.setNametagVisibility
(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static int
TeamCommand.setPrefix
(CommandSourceStack source, PlayerTeam team, Component prefix) private static int
TeamCommand.setSuffix
(CommandSourceStack source, PlayerTeam team, Component suffix) -
Uses of PlayerTeam in net.minecraft.world.entity
Methods in net.minecraft.world.entity that return PlayerTeam -
Uses of PlayerTeam in net.minecraft.world.scores
Fields in net.minecraft.world.scores with type parameters of type PlayerTeamModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.objects.Object2ObjectMap
<String, PlayerTeam> Scoreboard.teamsByName
private final it.unimi.dsi.fastutil.objects.Object2ObjectMap
<String, PlayerTeam> Scoreboard.teamsByPlayer
Methods in net.minecraft.world.scores that return PlayerTeamModifier and TypeMethodDescriptionScoreboard.addPlayerTeam
(String name) Scoreboard.getPlayersTeam
(String username) Gets the ScorePlayerTeam object for the given username.Scoreboard.getPlayerTeam
(String teamName) Retrieve the ScorePlayerTeam instance identified by the passed team nameMethods in net.minecraft.world.scores that return types with arguments of type PlayerTeamMethods in net.minecraft.world.scores with parameters of type PlayerTeamModifier and TypeMethodDescriptionboolean
Scoreboard.addPlayerToTeam
(String playerName, PlayerTeam team) private void
ScoreboardSaveData.loadTeamPlayers
(PlayerTeam playerTeam, ListTag tagList) void
Scoreboard.onTeamAdded
(PlayerTeam playerTeam) void
Scoreboard.onTeamChanged
(PlayerTeam playerTeam) void
Scoreboard.onTeamRemoved
(PlayerTeam playerTeam) void
Scoreboard.removePlayerFromTeam
(String username, PlayerTeam playerTeam) Removes the given username from the given ScorePlayerTeam.void
Scoreboard.removePlayerTeam
(PlayerTeam playerTeam) Removes the team from the scoreboard, updates all player memberships and broadcasts the deletion to all players