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 PlayerTeamTeleportToTeamMenuCategory.TeamSelectionItem.teamMethods 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 PlayerTeamModifierConstructorDescriptionprivateTeamSelectionItem(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 PlayerTeamTeamArgument.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 TypeMethodDescriptionbooleanServerScoreboard.addPlayerToTeam(String playerName, PlayerTeam team) voidServerScoreboard.onTeamAdded(PlayerTeam playerTeam) voidServerScoreboard.onTeamChanged(PlayerTeam playerTeam) voidServerScoreboard.onTeamRemoved(PlayerTeam playerTeam) voidServerScoreboard.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 intTeamCommand.deleteTeam(CommandSourceStack source, PlayerTeam team) private static intTeamCommand.emptyTeam(CommandSourceStack source, PlayerTeam team) private static intTeamCommand.joinTeam(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> players) private static intTeamCommand.listMembers(CommandSourceStack source, PlayerTeam team) private static voidTeamMsgCommand.sendMessage(CommandSourceStack source, Entity sender, PlayerTeam team, List<ServerPlayer> teamMembers, PlayerChatMessage chatMessage) private static intTeamCommand.setCollision(CommandSourceStack source, PlayerTeam team, Team.CollisionRule rule) private static intTeamCommand.setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting value) private static intTeamCommand.setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static intTeamCommand.setDisplayName(CommandSourceStack source, PlayerTeam team, Component value) private static intTeamCommand.setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean value) private static intTeamCommand.setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean value) private static intTeamCommand.setNametagVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static intTeamCommand.setPrefix(CommandSourceStack source, PlayerTeam team, Component prefix) private static intTeamCommand.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.teamsByNameprivate final it.unimi.dsi.fastutil.objects.Object2ObjectMap<String, PlayerTeam> Scoreboard.teamsByPlayerMethods 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 TypeMethodDescriptionbooleanScoreboard.addPlayerToTeam(String playerName, PlayerTeam team) private voidScoreboardSaveData.loadTeamPlayers(PlayerTeam playerTeam, ListTag tagList) voidScoreboard.onTeamAdded(PlayerTeam playerTeam) voidScoreboard.onTeamChanged(PlayerTeam playerTeam) voidScoreboard.onTeamRemoved(PlayerTeam playerTeam) voidScoreboard.removePlayerFromTeam(String username, PlayerTeam playerTeam) Removes the given username from the given ScorePlayerTeam.voidScoreboard.removePlayerTeam(PlayerTeam playerTeam) Removes the team from the scoreboard, updates all player memberships and broadcasts the deletion to all players