IEntityProcessor

interface IEntityProcessor<T : Entity?> : Function<T, R> (source)

Interface defining an entity processor. To register an entity processor, see opekope2.optigui.annotation.EntityProcessor documentation. The name of the entrypoint is optigui-entityprocessor.

Parameters

<T>

The entity type the processor accepts

See also

Functions

Link copied to clipboard
@Nullable
open fun <T : Entity?> ofClass(@NotNull type: @NotNull Class<@NotNull T>): @Nullable IEntityProcessor<T>
Finds the registered entity processor for the given entity class.

Inherited functions

Link copied to clipboard
open fun <V> andThen(after: (out Any) -> out V): (T) -> V
Link copied to clipboard
abstract fun apply(p: T): R
Link copied to clipboard
open fun <V> compose(before: (out Any) -> out T): (V) -> R
Link copied to clipboard
open fun <T> identity(): (T) -> T