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 Copyimport crafttweaker.api.world.InteractionResultHolder;
Static Methods
Link to static-methods
Name: consume
Return Type: InteractionResultHolder<T>
ZenScript CopyInteractionResultHolder.consume<T : Object>(object as T) as InteractionResultHolder<T>
Parameter | Type |
---|---|
Parameter object | Type T |
Parameter T | Type Object |
Name: fail
Return Type: InteractionResultHolder<T>
ZenScript CopyInteractionResultHolder.fail<T : Object>(object as T) as InteractionResultHolder<T>
Parameter | Type |
---|---|
Parameter object | Type T |
Parameter T | Type Object |
Name: pass
Return Type: InteractionResultHolder<T>
ZenScript CopyInteractionResultHolder.pass<T : Object>(object as T) as InteractionResultHolder<T>
Parameter | Type |
---|---|
Parameter object | Type T |
Parameter T | Type Object |
Name: sidedSuccess
Return Type: InteractionResultHolder<T>
ZenScript CopyInteractionResultHolder.sidedSuccess<T : Object>(object as T, success as boolean) as InteractionResultHolder<T>
Parameter | Type |
---|---|
Parameter object | Type T |
Parameter success | Type boolean |
Parameter T | Type Object |
Name: success
Return Type: InteractionResultHolder<T>
ZenScript CopyInteractionResultHolder.success<T : Object>(object as T) as InteractionResultHolder<T>
Parameter | Type |
---|---|
Parameter object | Type T |
Parameter T | Type Object |
Methods
Link to methods
Name: getObject
Return Type: T
ZenScript CopyInteractionResultHolder.getObject<T : Object>() as T
Parameter | Type |
---|---|
Parameter T | Type Object |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name result | Type InteractionResult | Has Getter true | Has Setter false |