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 p_260048_, PlayerTeam p_259058_) Constructors in net.minecraft.client.gui.spectator.categories with parameters of type PlayerTeamModifierConstructorDescriptionprivate
TeamSelectionItem
(PlayerTeam p_259176_, List<PlayerInfo> p_259231_, Supplier<PlayerSkin> p_294955_) -
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 p_179333_, boolean p_179334_) ClientboundSetPlayerTeamPacket.createPlayerPacket
(PlayerTeam p_179329_, String p_179330_, ClientboundSetPlayerTeamPacket.Action p_179331_) ClientboundSetPlayerTeamPacket.createRemovePacket
(PlayerTeam p_179327_) 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 p_136215_, PlayerTeam p_136216_) void
ServerScoreboard.onTeamAdded
(PlayerTeam p_136204_) void
ServerScoreboard.onTeamChanged
(PlayerTeam p_136221_) void
ServerScoreboard.onTeamRemoved
(PlayerTeam p_136228_) void
ServerScoreboard.removePlayerFromTeam
(String p_136223_, PlayerTeam p_136224_) -
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 p_138927_, PlayerTeam p_138928_) private static int
TeamCommand.emptyTeam
(CommandSourceStack p_138884_, PlayerTeam p_138885_) private static int
TeamCommand.joinTeam
(CommandSourceStack p_138895_, PlayerTeam p_138896_, Collection<ScoreHolder> p_138897_) private static int
TeamCommand.listMembers
(CommandSourceStack p_138944_, PlayerTeam p_138945_) private static void
TeamMsgCommand.sendMessage
(CommandSourceStack p_248778_, Entity p_248891_, PlayerTeam p_250504_, List<ServerPlayer> p_249706_, PlayerChatMessage p_249707_) private static int
TeamCommand.setCollision
(CommandSourceStack p_138887_, PlayerTeam p_138888_, Team.CollisionRule p_138889_) private static int
TeamCommand.setColor
(CommandSourceStack p_138899_, PlayerTeam p_138900_, ChatFormatting p_138901_) private static int
TeamCommand.setDeathMessageVisibility
(CommandSourceStack p_138930_, PlayerTeam p_138931_, Team.Visibility p_138932_) private static int
TeamCommand.setDisplayName
(CommandSourceStack p_138903_, PlayerTeam p_138904_, Component p_138905_) private static int
TeamCommand.setFriendlyFire
(CommandSourceStack p_138938_, PlayerTeam p_138939_, boolean p_138940_) private static int
TeamCommand.setFriendlySight
(CommandSourceStack p_138907_, PlayerTeam p_138908_, boolean p_138909_) private static int
TeamCommand.setNametagVisibility
(CommandSourceStack p_138891_, PlayerTeam p_138892_, Team.Visibility p_138893_) private static int
TeamCommand.setPrefix
(CommandSourceStack p_138934_, PlayerTeam p_138935_, Component p_138936_) private static int
TeamCommand.setSuffix
(CommandSourceStack p_138947_, PlayerTeam p_138948_, Component p_138949_) -
Uses of PlayerTeam in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as PlayerTeamModifier and TypeFieldDescriptionprivate final PlayerTeam
ConversionParams.team
The field for theteam
record component.Methods in net.minecraft.world.entity that return PlayerTeamModifier and TypeMethodDescriptionEntity.getTeam()
TamableAnimal.getTeam()
ConversionParams.team()
Returns the value of theteam
record component.Constructors in net.minecraft.world.entity with parameters of type PlayerTeamModifierConstructorDescriptionConversionParams
(ConversionType type, boolean keepEquipment, boolean preserveCanPickUpLoot, PlayerTeam team) Creates an instance of aConversionParams
record 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.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 p_83493_) Scoreboard.getPlayersTeam
(String p_83501_) Scoreboard.getPlayerTeam
(String p_83490_) Methods 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 p_83434_, PlayerTeam p_83435_) void
Scoreboard.onTeamAdded
(PlayerTeam p_83423_) void
Scoreboard.onTeamChanged
(PlayerTeam p_83456_) void
Scoreboard.onTeamRemoved
(PlayerTeam p_83468_) void
Scoreboard.removePlayerFromTeam
(String p_83464_, PlayerTeam p_83465_) void
Scoreboard.removePlayerTeam
(PlayerTeam p_83476_)