IBlockEntityProcessor

Interface defining an entity processor. To register a block entity processor, see opekope2.optigui.annotation.BlockEntityProcessor documentation. The name of the entrypoint is optigui-blockentityprocessor.

Parameters

<T>

The entity type the processor accepts

See also

Functions

Link copied to clipboard
@Nullable
open fun <T : BlockEntity?> ofClass(@NotNull type: @NotNull Class<@NotNull T>): @Nullable IBlockEntityProcessor<T>
Finds the registered block entity processor for the given block 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