prepare

fun prepare(container: Identifier, player: PlayerEntity, world: World, hand: Hand, hitResult: HitResult?, extra: Any?): Boolean(source)
fun prepare(container: Identifier, player: PlayerEntity, world: World, hand: Hand, hitResult: HitResult?, extra: Any?, blockEntity: BlockEntity): Boolean(source)
fun prepare(container: Identifier, player: PlayerEntity, world: World, hand: Hand, hitResult: HitResult?, extra: Any?, entity: Entity): Boolean(source)

Prepares OptiGUI texture replacer for an interaction. Must be called before a Screen is opened. If called multiple times before a Screen is opened, the last call takes effect.

Return

true if a GUI is not open, otherwise false

See also