Class WorldLayer

All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
CustomLayer, PlayersLayer, SpawnLayer, WorldBorderLayer

public abstract class WorldLayer extends SimpleLayer
Represents a layer for worlds.
  • Constructor Details

    • WorldLayer

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

    • getWorld

      @NotNull public @NotNull World getWorld()
    • getOptions

      @Nullable public @Nullable Options getOptions()
    • setOptions

      @NotNull public @NotNull WorldLayer setOptions(@Nullable @Nullable Options options)