Interface ArenasGUIController
- All Superinterfaces:
HologramController
Extending API if
HologramControllerType.ARENASGUI_OPENER
is used.
Cast HologramEntity.getController()
to this class to access the methods.
-
Method Summary
Modifier and TypeMethodDescription@Nullable LazyReference
<ArenaConditionGroup> Get the condition that may optionally be used to limit the arenas shown in the GUI.Get the id of the arenasgui layout that will be opened when clicked on.getName()
Get the name of the hologram that will be displayed above his head.void
setArenasCondition
(@Nullable ArenaConditionGroup condition) Set your own condition that may optionally be used to limit the arenas shown in the GUI.void
setLayoutId
(String layoutId) Set the id of the arenasgui layout that will be opened when clicked on.void
Set the name of the hologram that will be displayed above his head.Methods inherited from interface de.marcely.bedwars.api.world.hologram.HologramController
applyProperties, deserialize, getHologram, getType, handleInteract, isActive, serialize
-
Method Details
-
getLayoutId
String getLayoutId()Get the id of the arenasgui layout that will be opened when clicked on.- Returns:
- The layout id opened when clicked
-
setLayoutId
Set the id of the arenasgui layout that will be opened when clicked on.- Parameters:
layoutId
- The layout id opened when clicked
-
getName
String getName()Get the name of the hologram that will be displayed above his head.- Returns:
- The name of the hologram
-
setName
Set the name of the hologram that will be displayed above his head.Make sure to call
HologramController.applyProperties()
after changing the name to update the hologram.- Parameters:
name
- The name of the hologram
-
getArenasCondition
Get the condition that may optionally be used to limit the arenas shown in the GUI.It returns a LazyReference as the condition may only be loaded when needed, to give addons time to register their custom variables.
- Returns:
- The condition used to limit the arenas shown in the GUI. May be
null
if there is none
-
setArenasCondition
Set your own condition that may optionally be used to limit the arenas shown in the GUI.- Parameters:
condition
- The condition used to limit the arenas shown in the GUI. May benull
if there is none
-