public interface Arena
Modifier and Type | Method and Description |
---|---|
boolean |
canRollback() |
Location |
getCenter()
Gets the center of this arena.
|
Location |
getCorner1() |
Location |
getCorner2() |
Fight |
getCurrentFight() |
int |
getCustomMaxChangesPerTick() |
java.lang.String |
getDisplayName() |
ItemStack |
getIcon() |
java.util.List<java.lang.String> |
getKits() |
Location |
getLoc1()
Gets the first location of this arena.
|
Location |
getLoc2()
Gets the second location of this arena.
|
java.lang.String |
getName()
Gets the name of this arena.
|
java.lang.String |
getOriginalName()
Gets the name of this arena.
|
boolean |
hasCornersSet() |
boolean |
hasWall() |
boolean |
isBuild()
Gets whether this arena is a build arena or not.
|
boolean |
isEventArena() |
boolean |
isFFA() |
boolean |
isUsing()
Gets whether this arena is used or not.
|
boolean |
needsRollback()
Gets whether this arena needs to be restored or not.
|
void |
quickRollback() |
boolean |
removeFromStrikePractice()
Remove the arena from StrikePractice so it won't be used by StrikePractice anymore
|
void |
removeItems() |
void |
rollbackArena(Fight fight) |
void |
saveForStrikePractice()
Save the arena so StrikePractice can use it.
|
void |
sendPossibleWrongWorldInfo(Player p) |
void |
setBuild(boolean build) |
void |
setCenter(Location center)
Sets the center spawn of this arena.
|
void |
setCorner1(Location corner1) |
void |
setCorner2(Location corner2) |
void |
setCurrentFight(Fight currentFight) |
void |
setCustomMaxChangesPerTick(int customMaxChangePerTick) |
void |
setDisplayName(java.lang.String displayName) |
void |
setFFA(boolean ffa) |
void |
setIcon(ItemStack icon) |
void |
setKits(java.util.List<java.lang.String> kits) |
void |
setLoc1(Location loc1)
Sets the first spawn of this arena.
|
void |
setLoc2(Location loc2)
Sets the second spawn of this arena.
|
void |
setUsing(boolean using) |
void |
setUsing(boolean using,
Fight fight) |
void saveForStrikePractice()
boolean removeFromStrikePractice()
boolean canRollback()
void rollbackArena(Fight fight)
void quickRollback()
void setUsing(boolean using, Fight fight)
using
- true for using, false for not using.boolean isUsing()
boolean isBuild()
boolean isFFA()
boolean isEventArena()
void setFFA(boolean ffa)
ffa
- the ffa to setboolean needsRollback()
void setBuild(boolean build)
build
- true for build arena, false for not build arena.Location getLoc1()
Location getLoc2()
Location getCenter()
boolean hasWall()
java.util.List<java.lang.String> getKits()
void setUsing(boolean using)
void setKits(java.util.List<java.lang.String> kits)
kits
- the kits to setjava.lang.String getName()
java.lang.String getOriginalName()
java.lang.String getDisplayName()
void setDisplayName(java.lang.String displayName)
displayName
- the displayName to setvoid setLoc1(Location loc1)
loc1
- Location that will be the first spawn.void setLoc2(Location loc2)
loc2
- Location that will be the second spawn.void setCorner1(Location corner1)
void setCorner2(Location corner2)
Location getCorner1()
Location getCorner2()
boolean hasCornersSet()
void setCurrentFight(Fight currentFight)
void setCenter(Location center)
center
- Location that will be the center spawn.Fight getCurrentFight()
int getCustomMaxChangesPerTick()
void setCustomMaxChangesPerTick(int customMaxChangePerTick)
void sendPossibleWrongWorldInfo(Player p)
void removeItems()
ItemStack getIcon()
void setIcon(ItemStack icon)