Class DevPlatformers

java.lang.Object
ua.mcchickenstudio.opencreative.utils.world.platforms.DevPlatformers

public final class DevPlatformers extends Object

DevPlatformers

This class represents a registry, that contains list of all coding platforms generators, that can be used for building and manipulating with platforms in dev planets.

To create own dev platformer, create a class that extends DevPlatformer, and register it with registerDevPlatformer(DevPlatformer). To get instance of registry, use getInstance().

  • Method Details

    • getInstance

      public static DevPlatformers getInstance()
    • registerDevPlatformer

      public void registerDevPlatformer(@NotNull @NotNull DevPlatformer platformer)
      Registers coding platform generator.
      Parameters:
      platformer - dev platformer to register.
    • getById

      @Nullable public @Nullable DevPlatformer getById(@NotNull @NotNull String id)
      Returns coding platform generator from registry by specified id, if it exists, otherwise - null.
      Parameters:
      id - id to get dev platformer.
      Returns:
      dev platform - if found, otherwise - null.
    • getPlatformersIDs

      @NotNull public @NotNull List<String> getPlatformersIDs()
      Returns a list of all registered platformers IDs.
      Returns:
      platformers ID list.