IBlockEntityProcessor

public interface IBlockEntityProcessor<T extends BlockEntity> implements Function<T, R>(source)

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()
public static @Nullable() IBlockEntityProcessor<T> ofClass<T extends BlockEntity>(@NotNull() @NotNull() Class<@NotNull() T> type)
Finds the registered block entity processor for the given block entity class.

Inherited functions

Link copied to clipboard
public Function<T, V> andThen<V>(Function<? extends Object, ? extends V> after)
Link copied to clipboard
public abstract R apply(T p)
Link copied to clipboard
public Function<V, R> compose<V>(Function<? extends Object, ? extends T> before)
Link copied to clipboard
public static Function<T, T> identity<T>()