InteractionResultHolder

Link to interactionresultholder

Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.world.InteractionResultHolder;

Name: consume

Return Type: InteractionResultHolder<T>

ZenScript
Copy
InteractionResultHolder.consume<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Name: fail

Return Type: InteractionResultHolder<T>

ZenScript
Copy
InteractionResultHolder.fail<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Name: pass

Return Type: InteractionResultHolder<T>

ZenScript
Copy
InteractionResultHolder.pass<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Name: sidedSuccess

Return Type: InteractionResultHolder<T>

ZenScript
Copy
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

Name: success

Return Type: InteractionResultHolder<T>

ZenScript
Copy
InteractionResultHolder.success<T : Object>(object as T) as InteractionResultHolder<T>
ParameterType
Parameter
object
Type
T
Parameter
T
Type
Object

Name: getObject

Return Type: T

ZenScript
Copy
InteractionResultHolder.getObject<T : Object>() as T
ParameterType
Parameter
T
Type
Object
NameTypeHas GetterHas Setter
Name
result
Type
InteractionResult
Has Getter
true
Has Setter
false