OpFlags

object OpFlags

Op flags are used to hide or show certain right-click options on various interactable entities. This is a helper class to create various combinations of this flag.

Properties

Link copied to clipboard
const val ALL_SHOWN: Byte

A constant flag for 'show all options' on an entity.

Link copied to clipboard
const val NONE_SHOWN: Byte = 0

A constant flag for 'show no options' on an entity.

Functions

Link copied to clipboard
operator fun invoke(op1: Boolean, op2: Boolean, op3: Boolean, op4: Boolean, op5: Boolean): Byte
Link copied to clipboard
fun ofOps(op1: Boolean, op2: Boolean, op3: Boolean, op4: Boolean, op5: Boolean): Byte

Returns the bitpacked op flag out of the provided booleans.