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 createNew) ClientboundSetPlayerTeamPacket.createPlayerPacket(PlayerTeam team, String player, 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 player, PlayerTeam team) voidServerScoreboard.onTeamAdded(PlayerTeam team) voidServerScoreboard.onTeamChanged(PlayerTeam team) voidServerScoreboard.onTeamRemoved(PlayerTeam team) voidServerScoreboard.removePlayerFromTeam(String player, PlayerTeam team) Removes the given username from the given ScorePlayerTeam.private voidServerScoreboard.updateTeamWaypoints(PlayerTeam team) -
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> members) private static intTeamCommand.listMembers(CommandSourceStack source, PlayerTeam team) private static voidTeamMsgCommand.sendMessage(CommandSourceStack source, Entity entity, PlayerTeam team, List<ServerPlayer> receivers, PlayerChatMessage message) private static intTeamCommand.setCollision(CommandSourceStack source, PlayerTeam team, Team.CollisionRule collision) private static intTeamCommand.setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting color) private static intTeamCommand.setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static intTeamCommand.setDisplayName(CommandSourceStack source, PlayerTeam team, Component displayName) private static intTeamCommand.setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean allowed) private static intTeamCommand.setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean allowed) 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
Fields in net.minecraft.world.entity declared as PlayerTeamModifier and TypeFieldDescriptionprivate final @Nullable PlayerTeamConversionParams.teamThe field for theteamrecord component.Methods in net.minecraft.world.entity that return PlayerTeamModifier and TypeMethodDescription@Nullable PlayerTeamEntity.getTeam()@Nullable PlayerTeamTamableAnimal.getTeam()@Nullable PlayerTeamConversionParams.team()Returns the value of theteamrecord component.Constructors in net.minecraft.world.entity with parameters of type PlayerTeamModifierConstructorDescriptionConversionParams(ConversionType type, boolean keepEquipment, boolean preserveCanPickUpLoot, @Nullable PlayerTeam team) Creates an instance of aConversionParamsrecord class. -
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) @Nullable PlayerTeamScoreboard.getPlayersTeam(String name) Gets the ScorePlayerTeam object for the given username.@Nullable PlayerTeamScoreboard.getPlayerTeam(String name) 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 player, PlayerTeam team) voidScoreboard.onTeamAdded(PlayerTeam team) voidScoreboard.onTeamChanged(PlayerTeam team) voidScoreboard.onTeamRemoved(PlayerTeam team) voidScoreboard.removePlayerFromTeam(String player, PlayerTeam team) Removes the given username from the given ScorePlayerTeam.voidScoreboard.removePlayerTeam(PlayerTeam team) Removes the team from the scoreboard, updates all player memberships and broadcasts the deletion to all players