Interaction

data class Interaction(val container: Identifier, val texture: Identifier, val screen: Screen, val data: Interaction.Data)(source)

Interaction representation with a block entity or entity.

Parameters

container

The identifier of the interacted container. Same as in the /summon or /setblock commands

texture

The texture to be replaced.

screen

The active GUI screen

data

The details of the interaction

Constructors

Link copied to clipboard
constructor(container: Identifier, texture: Identifier, screen: Screen, data: Interaction.Data)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Data(val player: PlayerEntity, val world: World, val hand: Hand, val hitResult: HitResult?, val extra: Any?, val blockEntity: BlockEntity?, val entity: Entity?)

Details about an interaction.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard