Package-level declarations

Types

Link copied to clipboard

A block entity preprocessor, which extracts information from a block entity for further processing by filters. This class provides Interaction.data (converts a block entity to an object, where properties of the block entity are stored, which will be processed by filters supporting it).

Link copied to clipboard
fun interface EntityPreprocessor<T : Entity>

An entity preprocessor, which extracts information from an entity for further processing by filters. This class provides Interaction.data (converts an entity to an object, where properties of the entity are stored, which will be processed by filters supporting it).

Link copied to clipboard
data class Interaction(val texture: Identifier, val screenTitle: Text, val rawInteraction: RawInteraction?, val data: Any?)

Interaction representation with a block entity or entity.

Link copied to clipboard

Represents the target of an interaction. See nested classes for available options.

Link copied to clipboard

Interface to registered BlockEntityPreprocessor and EntityPreprocessor instances.

Link copied to clipboard
data class RawInteraction(val player: PlayerEntity, val world: World, val hand: Hand, val hitResult: HitResult?)

Raw interaction details. When using preprocessors, this is likely unnecessary. Only required, when entities and block entities are unavailable (for example, anvils, and many villager job sites). Unavailable for ridden entities.