Interface CreateArena
-
- All Known Subinterfaces:
PartCreateArena
public interface CreateArena extends Arena
設置場地接口, 用於設置場地
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addDescriptionLine(String text)
為描述添加新一行default void
addLocation(String warp, Location location, int max)
default void
addWarp(String warp)
boolean
isChanged()
boolean
isSetupCompleted()
定義場地完成設置的條件default void
removeDescriptionLine()
刪除上一行描述default void
removeLastLocation(String warp)
刪除上一個地標default void
removeWarp(String warp)
void
setArenaName(String arenaName)
void
setAuthor(String author)
void
setChanged(Boolean changed)
設置場地有否被變更void
setDisplayName(String displayName)
void
setLocationMap(Map<String,List<Location>> locationMap)
void
setWorld(World world)
-
Methods inherited from interface com.ericlam.mc.minigames.core.arena.Arena
getArenaName, getAuthor, getDescription, getDisplayName, getInfo, getLocationsMap, getWarp, getWorld
-
-
-
-
Method Detail
-
setArenaName
void setArenaName(String arenaName)
- Parameters:
arenaName
- 場地名稱
-
setDisplayName
void setDisplayName(String displayName)
- Parameters:
displayName
- 場地顯示名稱
-
addLocation
default void addLocation(String warp, Location location, int max) throws WarpNotExistException, LocationMaxReachedException
- Parameters:
warp
- 地標location
- 位置max
- 最大設置數- Throws:
WarpNotExistException
- 地標不存在時LocationMaxReachedException
- 地標位置數過多時
-
removeLastLocation
default void removeLastLocation(String warp) throws WarpNotExistException, NoMoreLocationException
刪除上一個地標- Parameters:
warp
- 地標- Throws:
WarpNotExistException
- 地標不存在時NoMoreLocationException
- 沒有更多位置時
-
addWarp
default void addWarp(String warp) throws WarpExistException
- Parameters:
warp
- 添加地標- Throws:
WarpExistException
- 地標已存在時
-
removeWarp
default void removeWarp(String warp) throws WarpNotExistException
- Parameters:
warp
- 刪除地標- Throws:
WarpNotExistException
- 地標不存在時
-
addDescriptionLine
default void addDescriptionLine(String text)
為描述添加新一行- Parameters:
text
- 描述文字
-
removeDescriptionLine
default void removeDescriptionLine() throws NoMoreElementException
刪除上一行描述- Throws:
NoMoreElementException
- 沒有更多描述時
-
setLocationMap
void setLocationMap(Map<String,List<Location>> locationMap)
- Parameters:
locationMap
- 地標列表
-
isChanged
boolean isChanged()
- Returns:
- 場地有否被變更
-
setChanged
void setChanged(Boolean changed)
設置場地有否被變更- Parameters:
changed
- 有否被變更
-
isSetupCompleted
boolean isSetupCompleted()
定義場地完成設置的條件- Returns:
- 是否完成設置
-
-