Class PlayersLayer

All Implemented Interfaces:
JsonSerializable

public class PlayersLayer extends WorldLayer
Manages player markers.
  • Field Details

  • Constructor Details

    • PlayersLayer

      public PlayersLayer(@NotNull @NotNull World world)
      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 layer
      world - world
      labelSupplier - label
  • Method Details

    • getMarkers

      @NotNull public @NotNull Collection<@NotNull Marker<?>> getMarkers()
      Description copied from class: Layer
      Get the markers to display in this Layer.
      Overrides:
      getMarkers in class SimpleLayer
      Returns:
      markers to display