Package net.pl3x.map.core.markers.layer
Class WorldBorderLayer
java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.markers.layer.Layer
net.pl3x.map.core.markers.layer.SimpleLayer
net.pl3x.map.core.markers.layer.WorldLayer
net.pl3x.map.core.markers.layer.WorldBorderLayer
- All Implemented Interfaces:
JsonSerializable
Manages world border marker.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionWorldBorderLayer
(@NotNull String key, @NotNull World world, @NotNull Supplier<@NotNull String> labelSupplier) Create a new world border layer.WorldBorderLayer
(@NotNull World world) Create a new world border layer. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection
<@NotNull Marker<?>> Get the markers to display in this Layer.Methods inherited from class net.pl3x.map.core.markers.layer.WorldLayer
getOptions, getWorld, setOptions
Methods inherited from class net.pl3x.map.core.markers.layer.SimpleLayer
addMarker, clearMarkers, hasMarker, registeredMarkers, removeMarker
Methods inherited from class net.pl3x.map.core.markers.layer.Layer
equals, getCss, getLabel, getPane, getPriority, getUpdateInterval, getUpdateInterval, getZIndex, hashCode, isDefaultHidden, isLiveUpdate, setCss, setDefaultHidden, setLabel, setLabel, setLiveUpdate, setPane, setPriority, setShowControls, setUpdateInterval, setUpdateInterval, setZIndex, shouldShowControls, toJson, toString
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
WorldBorderLayer
Create a new world border layer.- Parameters:
world
- world
-
WorldBorderLayer
public WorldBorderLayer(@NotNull @NotNull String key, @NotNull @NotNull World world, @NotNull @NotNull Supplier<@NotNull String> labelSupplier) Create a new world border layer.- Parameters:
key
- key for layerworld
- worldlabelSupplier
- label
-
-
Method Details
-
getMarkers
Description copied from class:Layer
Get the markers to display in this Layer.- Overrides:
getMarkers
in classSimpleLayer
- Returns:
- markers to display
-