InteractionResultHolder

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.world.InteractionResultHolder;

Static Methods

Return Type: InteractionResultHolder<T>

script.zs
InteractionResultHolder.consume<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Return Type: InteractionResultHolder<T>

script.zs
InteractionResultHolder.fail<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Return Type: InteractionResultHolder<T>

script.zs
InteractionResultHolder.pass<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Return Type: InteractionResultHolder<T>

script.zs
InteractionResultHolder.sidedSuccess<T : Object>(object as T, success as boolean) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
success
Type
boolean
Parameter
T
Type
Object

Return Type: InteractionResultHolder<T>

script.zs
InteractionResultHolder.success<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Methods

Return Type: T

script.zs
InteractionResultHolder.getObject<T : Object>() as T
ParameterType
Parameter
T
Type
Object

Properties

NameTypeHas GetterHas Setter
Name
result
Type
InteractionResult
Has Getter
true
Has Setter
false