Package fr.royalpha.sheepwars.api
Enum SheepWarsTeam
- java.lang.Object
-
- java.lang.Enum<SheepWarsTeam>
-
- fr.royalpha.sheepwars.api.SheepWarsTeam
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SheepWarsTeam>
,java.lang.constant.Constable
public enum SheepWarsTeam extends java.lang.Enum<SheepWarsTeam>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
blocked
static int
blueSlot
private org.bukkit.ChatColor
color
private fr.royalpha.sheepwars.core.message.Message
displayName
private org.bukkit.DyeColor
dyecolor
private int
lastSpawn
private org.bukkit.Color
leatherColor
private org.bukkit.Material
material
private java.lang.String
name
private java.util.List<org.bukkit.entity.Player>
players
static int
redSlot
-
Constructor Summary
Constructors Modifier Constructor Description private
SheepWarsTeam(java.lang.String name, fr.royalpha.sheepwars.core.message.Message displayName, org.bukkit.Material material, org.bukkit.DyeColor dyecolor, org.bukkit.ChatColor color, int r, int g, int b)
-
Method Summary
Modifier and Type Method Description void
addPlayer(org.bukkit.entity.Player player)
static boolean
checkTeams()
net.md_5.bungee.api.ChatColor
getBungeeColor()
org.bukkit.ChatColor
getColor()
java.lang.String
getDisplayName(org.bukkit.entity.Player player)
org.bukkit.DyeColor
getDyeColor()
org.bukkit.inventory.ItemStack
getIcon(org.bukkit.entity.Player p)
org.bukkit.Color
getLeatherColor()
org.bukkit.Material
getMaterial()
java.lang.String
getName()
org.bukkit.Location
getNextSpawn()
java.util.List<org.bukkit.entity.Player>
getOnlinePlayers()
static SheepWarsTeam
getRandomTeam()
static SheepWarsTeam
getTeam(java.lang.String name)
static SheepWarsTeam
getTeam(org.bukkit.ChatColor color)
void
inGameRules()
java.lang.Boolean
isBlocked()
private static void
rebuildTeams()
void
removePlayer(org.bukkit.entity.Player player)
void
setBlocked(boolean bool)
void
updateScoreboardTeamCount()
static SheepWarsTeam
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SheepWarsTeam[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLUE
public static final SheepWarsTeam BLUE
-
RED
public static final SheepWarsTeam RED
-
SPEC
public static final SheepWarsTeam SPEC
-
NULL
public static final SheepWarsTeam NULL
-
-
Field Detail
-
redSlot
public static int redSlot
-
blueSlot
public static int blueSlot
-
name
private java.lang.String name
-
material
private org.bukkit.Material material
-
displayName
private final fr.royalpha.sheepwars.core.message.Message displayName
-
dyecolor
private org.bukkit.DyeColor dyecolor
-
color
private final org.bukkit.ChatColor color
-
leatherColor
private final org.bukkit.Color leatherColor
-
players
private java.util.List<org.bukkit.entity.Player> players
-
blocked
private java.lang.Boolean blocked
-
lastSpawn
private int lastSpawn
-
-
Method Detail
-
values
public static SheepWarsTeam[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SheepWarsTeam valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getRandomTeam
public static SheepWarsTeam getRandomTeam()
-
getTeam
public static SheepWarsTeam getTeam(java.lang.String name)
-
getTeam
public static SheepWarsTeam getTeam(org.bukkit.ChatColor color)
-
addPlayer
public void addPlayer(org.bukkit.entity.Player player)
-
removePlayer
public void removePlayer(org.bukkit.entity.Player player)
-
updateScoreboardTeamCount
public void updateScoreboardTeamCount()
-
getOnlinePlayers
public java.util.List<org.bukkit.entity.Player> getOnlinePlayers()
-
setBlocked
public void setBlocked(boolean bool)
-
isBlocked
public java.lang.Boolean isBlocked()
-
getNextSpawn
public org.bukkit.Location getNextSpawn()
-
inGameRules
public void inGameRules()
-
getDisplayName
public java.lang.String getDisplayName(org.bukkit.entity.Player player)
-
getIcon
public org.bukkit.inventory.ItemStack getIcon(org.bukkit.entity.Player p)
-
getName
public java.lang.String getName()
-
getColor
public org.bukkit.ChatColor getColor()
-
getBungeeColor
public net.md_5.bungee.api.ChatColor getBungeeColor()
-
getMaterial
public org.bukkit.Material getMaterial()
-
getLeatherColor
public org.bukkit.Color getLeatherColor()
-
getDyeColor
public org.bukkit.DyeColor getDyeColor()
-
checkTeams
public static boolean checkTeams()
-
rebuildTeams
private static void rebuildTeams()
-
-