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(@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, 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
-
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:LayerGet the markers to display in this Layer.- Overrides:
getMarkersin classSimpleLayer- Returns:
- markers to display
-