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 TypeMethodDescriptionvoidaddTeamChest(Object location) intintgetColor()getGame()intgetName()booleanisAlive()booleanisDead()booleanisPlayerInTeam(P player) booleanbooleanisTeamChestRegistered(Object location) voidremoveTeamChest(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:
-