Package de.marcely.bedwars.api.arena
Interface ArenaBuilder
public interface ArenaBuilder
Can be obtained with
GameAPI.createArena()
-
Method Summary
Modifier and TypeMethodDescriptionfinish()
Takes all given parameters and constructs the arenasetLocation1
(XYZ loc) Can be used for:
-RegenerationType.REGION
setLocation2
(XYZ loc) Can be used for:
-RegenerationType.REGION
setRegenerationType
(RegenerationType regenType) The regeneration type of an arena represents its form or its general behavior
-
Method Details
-
setRegenerationType
The regeneration type of an arena represents its form or its general behavior- Parameters:
regenType
- The regeneration type for the arena- Returns:
- This ArenaBuilder instance
-
setName
- Parameters:
name
- The name for the new arena- Returns:
- This ArenaBuilder instance
-
addAuthor
- Parameters:
author
- An author of the arena- Returns:
- This ArenaBuilder instance
-
setWorld
- Parameters:
world
- The world for the new arena- Returns:
- This ArenaBuilder instance
-
setLocation1
Can be used for:
-RegenerationType.REGION
- Parameters:
loc
- The location of the first corner- Returns:
- This ArenaBuilder instance
-
setLocation2
Can be used for:
-RegenerationType.REGION
- Parameters:
loc
- The location of the second corner- Returns:
- This ArenaBuilder instance
-
finish
Takes all given parameters and constructs the arena- Returns:
- The built arena
- Throws:
ArenaBuildException
- Can occur when e.g. the name is already taken or some parameters aren't correct
-