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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorldBorderLayer(@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, setOptionsMethods inherited from class net.pl3x.map.core.markers.layer.SimpleLayer
addMarker, clearMarkers, hasMarker, registeredMarkers, removeMarkerMethods inherited from class net.pl3x.map.core.markers.layer.Layer
equals, getCss, getLabel, getPane, getPriority, getUpdateInterval, getZIndex, hashCode, isDefaultHidden, setCss, setDefaultHidden, setLabel, setLabel, setPane, setPriority, setShowControls, 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:LayerGet the markers to display in this Layer.- Overrides:
getMarkersin classSimpleLayer- Returns:
- markers to display
-