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 pMinecraft, PlayerTeam pTeam) Constructors in net.minecraft.client.gui.spectator.categories with parameters of type PlayerTeamModifierConstructorDescriptionprivateTeamSelectionItem(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 PlayerTeamTeamArgument.getTeam(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
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 TypeMethodDescriptionbooleanServerScoreboard.addPlayerToTeam(String p_136215_, PlayerTeam p_136216_) voidServerScoreboard.onTeamAdded(PlayerTeam pPlayerTeam) voidServerScoreboard.onTeamChanged(PlayerTeam pPlayerTeam) voidServerScoreboard.onTeamRemoved(PlayerTeam pPlayerTeam) voidServerScoreboard.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 intTeamCommand.deleteTeam(CommandSourceStack pSource, PlayerTeam pTeam) private static intTeamCommand.emptyTeam(CommandSourceStack pSource, PlayerTeam pTeam) private static intTeamCommand.joinTeam(CommandSourceStack pSource, PlayerTeam pTeam, Collection<ScoreHolder> pPlayers) private static intTeamCommand.listMembers(CommandSourceStack pSource, PlayerTeam pTeam) private static voidTeamMsgCommand.sendMessage(CommandSourceStack pSource, Entity pSender, PlayerTeam pTeam, List<ServerPlayer> pTeamMembers, PlayerChatMessage pChatMessage) private static intTeamCommand.setCollision(CommandSourceStack pSource, PlayerTeam pTeam, Team.CollisionRule pRule) private static intTeamCommand.setColor(CommandSourceStack pSource, PlayerTeam pTeam, ChatFormatting pValue) private static intTeamCommand.setDeathMessageVisibility(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static intTeamCommand.setDisplayName(CommandSourceStack pSource, PlayerTeam pTeam, Component pValue) private static intTeamCommand.setFriendlyFire(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static intTeamCommand.setFriendlySight(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static intTeamCommand.setNametagVisibility(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static intTeamCommand.setPrefix(CommandSourceStack pSource, PlayerTeam pTeam, Component pPrefix) private static intTeamCommand.setSuffix(CommandSourceStack pSource, PlayerTeam pTeam, Component pSuffix) -
Uses of PlayerTeam in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as PlayerTeamModifier and TypeFieldDescriptionprivate final PlayerTeamConversionParams.teamThe field for theteamrecord component.Methods in net.minecraft.world.entity that return PlayerTeamModifier and TypeMethodDescriptionEntity.getTeam()TamableAnimal.getTeam()ConversionParams.team()Returns the value of theteamrecord component.Constructors in net.minecraft.world.entity with parameters of type PlayerTeamModifierConstructorDescriptionConversionParams(ConversionType type, boolean keepEquipment, boolean preserveCanPickUpLoot, 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 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 TypeMethodDescriptionbooleanScoreboard.addPlayerToTeam(String pPlayerName, PlayerTeam pTeam) voidScoreboard.onTeamAdded(PlayerTeam pPlayerTeam) voidScoreboard.onTeamChanged(PlayerTeam pPlayerTeam) voidScoreboard.onTeamRemoved(PlayerTeam pPlayerTeam) voidScoreboard.removePlayerFromTeam(String pUsername, PlayerTeam pPlayerTeam) Removes the given username from the given ScorePlayerTeam.voidScoreboard.removePlayerTeam(PlayerTeam pPlayerTeam) Removes the team from the scoreboard, updates all player memberships and broadcasts the deletion to all players