Interface RelighterFactory

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 RelighterFactory
This abstracts the creation of Relighters to allow more modular code.
  • Method Details

    • createRelighter

      @Nonnull Relighter createRelighter(RelightMode relightMode, World world, IQueueExtent<IQueueChunk> queue)
      Create a new Relighter that can be used by a RelightProcessor.

      Implementations are meant to configure an appropriate Relighter using the specified parameters. There are no guarantees about the returned objects other than being non-null. If no valid Relighter can be created, NullRelighter.INSTANCE should be returned.

      Parameters:
      relightMode - the relight mode to use during relighting.
      world - the world in which relighting should be done.
      queue - the queue extent to work with.
      Returns:
      a new Relighter instance with the specified settings.