Package net.pl3x.map.core.markers.layer
Class PlayersLayer
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.PlayersLayer
- All Implemented Interfaces:
JsonSerializable
Manages player markers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayersLayer
(String key, World world, Supplier<String> labelSupplier) Create a new players layer.PlayersLayer
(World world) Create a new players layer. -
Method Summary
Modifier and TypeMethodDescriptionCollection
<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
-
PlayersLayer
Create a new players layer.- Parameters:
world
- world
-
PlayersLayer
Create a new players 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
-