LootConditions

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.loot.condition.LootConditions;

Members

static allOf(conditions as LootItemCondition[]) as LootConditions
script.zs
// LootConditions.allOf(conditions as LootItemCondition[]) as LootConditions;
LootConditions.allOf(myLootItemCondition[]);

Parameters:

conditions Type: LootCondition[]

Return Type: LootConditions

static allOf(builders as Builder[]) as LootConditions
script.zs
// LootConditions.allOf(builders as Builder[]) as LootConditions;
LootConditions.allOf(myBuilder[]);

Parameters:

Return Type: LootConditions

static anyOf(conditions as LootItemCondition[]) as LootConditions
script.zs
// LootConditions.anyOf(conditions as LootItemCondition[]) as LootConditions;
LootConditions.anyOf(myLootItemCondition[]);

Parameters:

conditions Type: LootCondition[]

Return Type: LootConditions

static anyOf(builders as Builder[]) as LootConditions
script.zs
// LootConditions.anyOf(builders as Builder[]) as LootConditions;
LootConditions.anyOf(myBuilder[]);

Parameters:

Return Type: LootConditions

static none() as LootConditions
script.zs
// LootConditions.none() as LootConditions;
LootConditions.none();

Return Type: LootConditions

static noneOf(conditions as LootItemCondition[]) as LootConditions
script.zs
// LootConditions.noneOf(conditions as LootItemCondition[]) as LootConditions;
LootConditions.noneOf(myLootItemCondition[]);

Parameters:

conditions Type: LootCondition[]

Return Type: LootConditions

static noneOf(builders as Builder[]) as LootConditions
script.zs
// LootConditions.noneOf(builders as Builder[]) as LootConditions;
LootConditions.noneOf(myBuilder[]);

Parameters:

Return Type: LootConditions

static notAllOf(conditions as LootItemCondition[]) as LootConditions
script.zs
// LootConditions.notAllOf(conditions as LootItemCondition[]) as LootConditions;
LootConditions.notAllOf(myLootItemCondition[]);

Parameters:

conditions Type: LootCondition[]

Return Type: LootConditions

static notAllOf(builders as Builder[]) as LootConditions
script.zs
// LootConditions.notAllOf(builders as Builder[]) as LootConditions;
LootConditions.notAllOf(myBuilder[]);

Parameters:

Return Type: LootConditions

static only(condition as LootItemCondition) as LootConditions
script.zs
// LootConditions.only(condition as LootItemCondition) as LootConditions;
LootConditions.only(myLootItemCondition);

Parameters:

condition Type: LootCondition

Return Type: LootConditions

static only(builder as Builder) as LootConditions
script.zs
// LootConditions.only(builder as Builder) as LootConditions;
LootConditions.only(myBuilder);

Parameters:

Return Type: LootConditions

static randomlyIn(percentageChance as double) as LootConditions
script.zs
// LootConditions.randomlyIn(percentageChance as double) as LootConditions;
LootConditions.randomlyIn(myDouble);

Parameters:

percentageChance Type: double

Return Type: LootConditions