Interface Generator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Generator
  • Method Details

    • generate

      void generate(@NotNull @NotNull GenerationUnit unit)
      This method is called when this generator is requesting this unit to be filled with blocks or biomes.
      Parameters:
      unit - the unit to fill
    • generateAll

      default void generateAll(@NotNull @NotNull Collection<@NotNull GenerationUnit> units)
      Runs generate(GenerationUnit) on each unit in the collection.
      Parameters:
      units - the list of units to fill