registerPreprocessor

public final Boolean registerPreprocessor(Class<? extends BlockEntity> type, BlockEntityPreprocessor processor)(source)

Registers the preprocessor for a block entity.

Return

true if registration is successful, false if the given block entity already has a preprocessor registered

Parameters

type

Java moment. The block entity type the preprocessor processes

processor

The block entity preprocessor instance


Registers the preprocessor for a block entity.

Return

true if registration is successful, false if the given block entity already has a preprocessor registered

Parameters

T

The block entity type the preprocessor processes

processor

The block entity preprocessor instance


public final Boolean registerPreprocessor(Class<? extends Entity> type, EntityPreprocessor processor)(source)

Registers the preprocessor for an entity.

Return

true if registration is successful, false if the given entity already has a preprocessor registered

Parameters

type

Java moment. The entity type the preprocessor processes

processor

The entity preprocessor instance


public final Boolean registerPreprocessor<T extends Entity>(EntityPreprocessor processor)(source)

Registers the preprocessor for an entity.

Return

true if registration is successful, false if the given entity already has a preprocessor registered

Parameters

T

The entity type the preprocessor processes

processor

The entity preprocessor instance