InteractionResultHolder

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

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

Members

static consume<T>(object as T) as InteractionResultHolder<T>
script.zs
// InteractionResultHolder<T>.consume<T>(object as T) as InteractionResultHolder<T>;
InteractionResultHolder<T>.consume<T>(myT);

Parameters:

object Type: T

Return Type: InteractionResultHolder<T>

static fail<T>(object as T) as InteractionResultHolder<T>
script.zs
// InteractionResultHolder<T>.fail<T>(object as T) as InteractionResultHolder<T>;
InteractionResultHolder<T>.fail<T>(myT);

Parameters:

object Type: T

Return Type: InteractionResultHolder<T>

getObject() as T
script.zs
// InteractionResultHolder<T>.getObject<T>() as T;
myInteractionResultHolder.getObject<T>();

Return Type: T

static pass<T>(object as T) as InteractionResultHolder<T>
script.zs
// InteractionResultHolder<T>.pass<T>(object as T) as InteractionResultHolder<T>;
InteractionResultHolder<T>.pass<T>(myT);

Parameters:

object Type: T

Return Type: InteractionResultHolder<T>

Getter
script.zs
// InteractionResultHolder<T>.result as InteractionResult
myInteractionResultHolder.result

Return Type: InteractionResult

static sidedSuccess<T>(object as T, success as bool) as InteractionResultHolder<T>
script.zs
// InteractionResultHolder<T>.sidedSuccess<T>(object as T, success as bool) as InteractionResultHolder<T>;
InteractionResultHolder<T>.sidedSuccess<T>(myT, myBool);

Parameters:

object Type: T
success Type: bool

Return Type: InteractionResultHolder<T>

static success<T>(object as T) as InteractionResultHolder<T>
script.zs
// InteractionResultHolder<T>.success<T>(object as T) as InteractionResultHolder<T>;
InteractionResultHolder<T>.success<T>(myT);

Parameters:

object Type: T

Return Type: InteractionResultHolder<T>