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
-
Constructor Summary
ConstructorDescriptionPlayersLayer
(@NotNull String key, @NotNull World world, @NotNull Supplier<@NotNull String> labelSupplier) Create a new players layer.PlayersLayer
(@NotNull World world) Create a new players 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
-
PlayersLayer
Create a new players layer.- Parameters:
world
- world
-
PlayersLayer
public PlayersLayer(@NotNull @NotNull String key, @NotNull @NotNull World world, @NotNull @NotNull Supplier<@NotNull String> labelSupplier) 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
-