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.Booleanblockedstatic intblueSlotprivate org.bukkit.ChatColorcolorprivate fr.royalpha.sheepwars.core.message.MessagedisplayNameprivate org.bukkit.DyeColordyecolorprivate intlastSpawnprivate org.bukkit.ColorleatherColorprivate org.bukkit.Materialmaterialprivate java.lang.Stringnameprivate java.util.List<org.bukkit.entity.Player>playersstatic intredSlot
-
Constructor Summary
Constructors Modifier Constructor Description privateSheepWarsTeam(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 voidaddPlayer(org.bukkit.entity.Player player)static booleancheckTeams()net.md_5.bungee.api.ChatColorgetBungeeColor()org.bukkit.ChatColorgetColor()java.lang.StringgetDisplayName(org.bukkit.entity.Player player)org.bukkit.DyeColorgetDyeColor()org.bukkit.inventory.ItemStackgetIcon(org.bukkit.entity.Player p)org.bukkit.ColorgetLeatherColor()org.bukkit.MaterialgetMaterial()java.lang.StringgetName()org.bukkit.LocationgetNextSpawn()java.util.List<org.bukkit.entity.Player>getOnlinePlayers()static SheepWarsTeamgetRandomTeam()static SheepWarsTeamgetTeam(java.lang.String name)static SheepWarsTeamgetTeam(org.bukkit.ChatColor color)voidinGameRules()java.lang.BooleanisBlocked()private static voidrebuildTeams()voidremovePlayer(org.bukkit.entity.Player player)voidsetBlocked(boolean bool)voidupdateScoreboardTeamCount()static SheepWarsTeamvalueOf(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()
-
-