Class CustomLayer

All Implemented Interfaces:
JsonSerializable

public class CustomLayer extends WorldLayer
Represents a custom layer of markers and other metadata.
  • Constructor Details

    • CustomLayer

      public CustomLayer(@NotNull @NotNull String key, @NotNull @NotNull World world, @NotNull @NotNull Supplier<@NotNull String> labelSupplier)
      Create a new custom layer.
      Parameters:
      key - key for layer
  • Method Details

    • load

      public static void load(World world, Path path)
    • fromJson

      @NotNull public static @NotNull CustomLayer fromJson(@NotNull @NotNull World world, @NotNull @NotNull com.google.gson.JsonObject obj)