Class ArenaConditionInput
java.lang.Object
de.marcely.bedwars.api.arena.picker.condition.variable.ArenaConditionInput
Represents either a dynamic variable or a static value.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFetches the value of a local arena.getValue
(RemoteArena arena) Fetches the value of a remote arena.static ArenaConditionInput
of
(ArenaConditionVariable<?> variable) Creates a new instance of this class with a variable.static ArenaConditionInput
of
(ArenaConditionVariableValue<?> value) Creates a new instance of this class with a value.toString()
-
Constructor Details
-
ArenaConditionInput
public ArenaConditionInput()
-
-
Method Details
-
getValue
Fetches the value of a local arena.- Parameters:
arena
- The local arena- Returns:
- The given property of this current moment
-
getValue
Fetches the value of a remote arena.- Parameters:
arena
- The remote arena- Returns:
- The given property of this current moment
-
of
Creates a new instance of this class with a variable.- Parameters:
variable
- The variable- Returns:
- The new instance
-
of
Creates a new instance of this class with a value.- Parameters:
value
- The value- Returns:
- The new instance
-
toString
-