registerPreprocessor

public final Boolean registerPreprocessor<T extends BlockEntity>(Class<? extends BlockEntity> type, BlockEntityPreprocessor<T> 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

T

The block entity type the preprocessor processes

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<T extends Entity>(Class<? extends Entity> type, EntityPreprocessor<T> 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

type

Java moment. The entity type the preprocessor processes

processor

The entity preprocessor instance


public final Boolean registerPreprocessor<T extends Entity>(EntityPreprocessor<T> 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