interact

abstract fun interact(player: PlayerEntity, world: World, hand: Hand, target: InteractionTarget, hitResult: HitResult?): Boolean(source)

Signals the texture replacer that an interaction has begun. Should be called before opening a GUI.

Parameters

player

The interacting player

world

The world the interaction happens in

hand

The hand of the player that triggered the interaction

target

The target the player is interacting with

hitResult

The hit result from Minecraft