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.
import crafttweaker.api.world.InteractionResultHolder;Static Methods
Return Type: InteractionResultHolder<T>
InteractionResultHolder.consume<T : Object>(object as T) as InteractionResultHolder<T>| Parameter | Type | 
|---|---|
| Parameterobject | TypeT | 
| ParameterT | TypeObject | 
Return Type: InteractionResultHolder<T>
InteractionResultHolder.fail<T : Object>(object as T) as InteractionResultHolder<T>| Parameter | Type | 
|---|---|
| Parameterobject | TypeT | 
| ParameterT | TypeObject | 
Return Type: InteractionResultHolder<T>
InteractionResultHolder.pass<T : Object>(object as T) as InteractionResultHolder<T>| Parameter | Type | 
|---|---|
| Parameterobject | TypeT | 
| ParameterT | TypeObject | 
Return Type: InteractionResultHolder<T>
InteractionResultHolder.sidedSuccess<T : Object>(object as T, success as boolean) as InteractionResultHolder<T>| Parameter | Type | 
|---|---|
| Parameterobject | TypeT | 
| Parametersuccess | Typeboolean | 
| ParameterT | TypeObject | 
Return Type: InteractionResultHolder<T>
InteractionResultHolder.success<T : Object>(object as T) as InteractionResultHolder<T>| Parameter | Type | 
|---|---|
| Parameterobject | TypeT | 
| ParameterT | TypeObject | 
Methods
Return Type: T
InteractionResultHolder.getObject<T : Object>() as T| Parameter | Type | 
|---|---|
| ParameterT | TypeObject | 
Properties
| Name | Type | Has Getter | Has Setter | 
|---|---|---|---|
| Nameresult | TypeInteractionResult | Has Gettertrue | Has Setterfalse |