Package org.screamingsandals.bedwars.api
Interface Team<L extends org.screamingsandals.lib.utils.Wrapper,C extends TeamColor,G extends Game<?,?,?,?,?,?,?,?,?>,I extends org.screamingsandals.lib.utils.Wrapper,P extends BWPlayer>
- Type Parameters:
L
- LocationC
- ColorG
- GameI
- Inventory
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTeamChest
(Object location) int
int
getColor()
getGame()
int
getName()
boolean
isAlive()
boolean
isDead()
boolean
isPlayerInTeam
(P player) boolean
boolean
isTeamChestRegistered
(Object location) void
removeTeamChest
(Object location)
-
Method Details
-
getGame
G getGame()- Returns:
-
getName
String getName()- Returns:
-
getColor
C getColor()- Returns:
-
getTeamSpawn
L getTeamSpawn()- Returns:
-
getTargetBlock
L getTargetBlock()- Returns:
-
getMaxPlayers
int getMaxPlayers()- Returns:
-
getTeamChestInventory
I getTeamChestInventory() -
addTeamChest
- Parameters:
location
-
-
removeTeamChest
- Parameters:
location
-
-
isTeamChestRegistered
- Parameters:
location
-- Returns:
-
countTeamChests
int countTeamChests()- Returns:
-
isTargetBlockIntact
boolean isTargetBlockIntact()- Returns:
-
countConnectedPlayers
int countConnectedPlayers()- Returns:
-
getPlayers
- Returns:
-
isPlayerInTeam
- Parameters:
player
-- Returns:
-
isDead
boolean isDead()- Returns:
-
isAlive
boolean isAlive()- Returns:
-