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.
This abstracts the creation of
Relighter
s to allow more modular code.-
Method Summary
Modifier and TypeMethodDescriptioncreateRelighter
(RelightMode relightMode, World world, IQueueExtent<IQueueChunk> queue) Create a newRelighter
that can be used by aRelightProcessor
.
-
Method Details
-
createRelighter
@Nonnull Relighter createRelighter(RelightMode relightMode, World world, IQueueExtent<IQueueChunk> queue) Create a newRelighter
that can be used by aRelightProcessor
.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.
-