Companion

Functions

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

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.