Package net.minecraft.command.impl
Class TeamCommand
- java.lang.Object
-
- net.minecraft.command.impl.TeamCommand
-
public class TeamCommand extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_COLOR
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_EMPTY
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_EXISTS
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_NAME
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_COLLISION_UNCHANGED
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_TEAM_NAME_TOO_LONG
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
-
Constructor Summary
Constructors Constructor Description TeamCommand()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static int
createTeam(CommandSource p_211916_0_, java.lang.String p_211916_1_)
private static int
createTeam(CommandSource p_211917_0_, java.lang.String p_211917_1_, ITextComponent p_211917_2_)
private static int
deleteTeam(CommandSource p_198784_0_, ScorePlayerTeam p_198784_1_)
private static int
emptyTeam(CommandSource p_198788_0_, ScorePlayerTeam p_198788_1_)
private static int
joinTeam(CommandSource p_198768_0_, ScorePlayerTeam p_198768_1_, java.util.Collection<java.lang.String> p_198768_2_)
private static int
leaveTeam(CommandSource p_198786_0_, java.util.Collection<java.lang.String> p_198786_1_)
private static int
listMembers(CommandSource p_198782_0_, ScorePlayerTeam p_198782_1_)
private static int
listTeams(CommandSource p_198792_0_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198771_0_)
private static int
setCollision(CommandSource p_198787_0_, ScorePlayerTeam p_198787_1_, Team.CollisionRule p_198787_2_)
private static int
setColor(CommandSource p_198757_0_, ScorePlayerTeam p_198757_1_, TextFormatting p_198757_2_)
private static int
setDeathMessageVisibility(CommandSource p_198776_0_, ScorePlayerTeam p_198776_1_, Team.Visible p_198776_2_)
private static int
setDisplayName(CommandSource p_211920_0_, ScorePlayerTeam p_211920_1_, ITextComponent p_211920_2_)
private static int
setFriendlyFire(CommandSource p_198781_0_, ScorePlayerTeam p_198781_1_, boolean p_198781_2_)
private static int
setFriendlySight(CommandSource p_198783_0_, ScorePlayerTeam p_198783_1_, boolean p_198783_2_)
private static int
setNametagVisibility(CommandSource p_198777_0_, ScorePlayerTeam p_198777_1_, Team.Visible p_198777_2_)
private static int
setPrefix(CommandSource p_207515_0_, ScorePlayerTeam p_207515_1_, ITextComponent p_207515_2_)
private static int
setSuffix(CommandSource p_207517_0_, ScorePlayerTeam p_207517_1_, ITextComponent p_207517_2_)
-
-
-
Field Detail
-
ERROR_TEAM_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EXISTS
-
ERROR_TEAM_NAME_TOO_LONG
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_TEAM_NAME_TOO_LONG
-
ERROR_TEAM_ALREADY_EMPTY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EMPTY
-
ERROR_TEAM_ALREADY_NAME
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_NAME
-
ERROR_TEAM_ALREADY_COLOR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_COLOR
-
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
-
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
-
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
-
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
-
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
-
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
-
ERROR_TEAM_COLLISION_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_COLLISION_UNCHANGED
-
-
Method Detail
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198771_0_)
-
leaveTeam
private static int leaveTeam(CommandSource p_198786_0_, java.util.Collection<java.lang.String> p_198786_1_)
-
joinTeam
private static int joinTeam(CommandSource p_198768_0_, ScorePlayerTeam p_198768_1_, java.util.Collection<java.lang.String> p_198768_2_)
-
setNametagVisibility
private static int setNametagVisibility(CommandSource p_198777_0_, ScorePlayerTeam p_198777_1_, Team.Visible p_198777_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDeathMessageVisibility
private static int setDeathMessageVisibility(CommandSource p_198776_0_, ScorePlayerTeam p_198776_1_, Team.Visible p_198776_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setCollision
private static int setCollision(CommandSource p_198787_0_, ScorePlayerTeam p_198787_1_, Team.CollisionRule p_198787_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlySight
private static int setFriendlySight(CommandSource p_198783_0_, ScorePlayerTeam p_198783_1_, boolean p_198783_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlyFire
private static int setFriendlyFire(CommandSource p_198781_0_, ScorePlayerTeam p_198781_1_, boolean p_198781_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplayName
private static int setDisplayName(CommandSource p_211920_0_, ScorePlayerTeam p_211920_1_, ITextComponent p_211920_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(CommandSource p_198757_0_, ScorePlayerTeam p_198757_1_, TextFormatting p_198757_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
emptyTeam
private static int emptyTeam(CommandSource p_198788_0_, ScorePlayerTeam p_198788_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
deleteTeam
private static int deleteTeam(CommandSource p_198784_0_, ScorePlayerTeam p_198784_1_)
-
createTeam
private static int createTeam(CommandSource p_211916_0_, java.lang.String p_211916_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
createTeam
private static int createTeam(CommandSource p_211917_0_, java.lang.String p_211917_1_, ITextComponent p_211917_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listMembers
private static int listMembers(CommandSource p_198782_0_, ScorePlayerTeam p_198782_1_)
-
listTeams
private static int listTeams(CommandSource p_198792_0_)
-
setPrefix
private static int setPrefix(CommandSource p_207515_0_, ScorePlayerTeam p_207515_1_, ITextComponent p_207515_2_)
-
setSuffix
private static int setSuffix(CommandSource p_207517_0_, ScorePlayerTeam p_207517_1_, ITextComponent p_207517_2_)
-
-