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 pMinecraft, PlayerTeam pTeam) Constructors in net.minecraft.client.gui.spectator.categories with parameters of type PlayerTeamModifierConstructorDescriptionprivate
TeamSelectionItem
(PlayerTeam pTeam, List<PlayerInfo> pPlayers, Supplier<PlayerSkin> pIconSkin) -
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> p_112092_, String p_112093_) -
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 pTeam, boolean pUseAdd) ClientboundSetPlayerTeamPacket.createPlayerPacket
(PlayerTeam pTeam, String pPlayerName, ClientboundSetPlayerTeamPacket.Action pAction) ClientboundSetPlayerTeamPacket.createRemovePacket
(PlayerTeam pTeam) 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 pPlayerName, PlayerTeam pTeam) void
ServerScoreboard.onTeamAdded
(PlayerTeam pPlayerTeam) void
ServerScoreboard.onTeamChanged
(PlayerTeam pPlayerTeam) void
ServerScoreboard.onTeamRemoved
(PlayerTeam pPlayerTeam) void
ServerScoreboard.removePlayerFromTeam
(String pUsername, PlayerTeam pPlayerTeam) 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 pSource, PlayerTeam pTeam) private static int
TeamCommand.emptyTeam
(CommandSourceStack pSource, PlayerTeam pTeam) private static int
TeamCommand.joinTeam
(CommandSourceStack pSource, PlayerTeam pTeam, Collection<ScoreHolder> pPlayers) private static int
TeamCommand.listMembers
(CommandSourceStack pSource, PlayerTeam pTeam) private static void
TeamMsgCommand.sendMessage
(CommandSourceStack pSource, Entity pSender, PlayerTeam pTeam, List<ServerPlayer> pTeamMembers, PlayerChatMessage pChatMessage) private static int
TeamCommand.setCollision
(CommandSourceStack pSource, PlayerTeam pTeam, Team.CollisionRule pRule) private static int
TeamCommand.setColor
(CommandSourceStack pSource, PlayerTeam pTeam, ChatFormatting pValue) private static int
TeamCommand.setDeathMessageVisibility
(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static int
TeamCommand.setDisplayName
(CommandSourceStack pSource, PlayerTeam pTeam, Component pValue) private static int
TeamCommand.setFriendlyFire
(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static int
TeamCommand.setFriendlySight
(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static int
TeamCommand.setNametagVisibility
(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static int
TeamCommand.setPrefix
(CommandSourceStack pSource, PlayerTeam pTeam, Component pPrefix) private static int
TeamCommand.setSuffix
(CommandSourceStack pSource, PlayerTeam pTeam, Component pSuffix) -
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 pName) Scoreboard.getPlayersTeam
(String pUsername) Gets the ScorePlayerTeam object for the given username.Scoreboard.getPlayerTeam
(String pTeamName) 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 pPlayerName, PlayerTeam pTeam) private void
ScoreboardSaveData.loadTeamPlayers
(PlayerTeam pPlayerTeam, ListTag pTagList) void
Scoreboard.onTeamAdded
(PlayerTeam pPlayerTeam) void
Scoreboard.onTeamChanged
(PlayerTeam pPlayerTeam) void
Scoreboard.onTeamRemoved
(PlayerTeam pPlayerTeam) void
Scoreboard.removePlayerFromTeam
(String pUsername, PlayerTeam pPlayerTeam) Removes the given username from the given ScorePlayerTeam.void
Scoreboard.removePlayerTeam
(PlayerTeam pPlayerTeam) Removes the team from the scoreboard, updates all player memberships and broadcasts the deletion to all players