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.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_COLORprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_EMPTYprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_EXISTSprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLEDprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLEDprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLEDprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLEDprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_ALREADY_NAMEprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_COLLISION_UNCHANGEDprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGEDprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeERROR_TEAM_NAME_TOO_LONGprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeERROR_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 intcreateTeam(CommandSource p_211916_0_, java.lang.String p_211916_1_)private static intcreateTeam(CommandSource p_211917_0_, java.lang.String p_211917_1_, ITextComponent p_211917_2_)private static intdeleteTeam(CommandSource p_198784_0_, ScorePlayerTeam p_198784_1_)private static intemptyTeam(CommandSource p_198788_0_, ScorePlayerTeam p_198788_1_)private static intjoinTeam(CommandSource p_198768_0_, ScorePlayerTeam p_198768_1_, java.util.Collection<java.lang.String> p_198768_2_)private static intleaveTeam(CommandSource p_198786_0_, java.util.Collection<java.lang.String> p_198786_1_)private static intlistMembers(CommandSource p_198782_0_, ScorePlayerTeam p_198782_1_)private static intlistTeams(CommandSource p_198792_0_)static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198771_0_)private static intsetCollision(CommandSource p_198787_0_, ScorePlayerTeam p_198787_1_, Team.CollisionRule p_198787_2_)private static intsetColor(CommandSource p_198757_0_, ScorePlayerTeam p_198757_1_, TextFormatting p_198757_2_)private static intsetDeathMessageVisibility(CommandSource p_198776_0_, ScorePlayerTeam p_198776_1_, Team.Visible p_198776_2_)private static intsetDisplayName(CommandSource p_211920_0_, ScorePlayerTeam p_211920_1_, ITextComponent p_211920_2_)private static intsetFriendlyFire(CommandSource p_198781_0_, ScorePlayerTeam p_198781_1_, boolean p_198781_2_)private static intsetFriendlySight(CommandSource p_198783_0_, ScorePlayerTeam p_198783_1_, boolean p_198783_2_)private static intsetNametagVisibility(CommandSource p_198777_0_, ScorePlayerTeam p_198777_1_, Team.Visible p_198777_2_)private static intsetPrefix(CommandSource p_207515_0_, ScorePlayerTeam p_207515_1_, ITextComponent p_207515_2_)private static intsetSuffix(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_)
-
-