LootConditionBuilder

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.

script.zs
import crafttweaker.api.loot.condition.builder.LootConditionBuilder;

Casters

Result TypeIs Implicit
Result Type
LootCondition
Is Implicit
true

Methods

Return Type: LootCondition

script.zs
// LootConditionBuilder.build() as LootCondition
myLootConditionBuilder.build();

Return Type: LootConditionBuilder

script.zs
// LootConditionBuilder.invert() as LootConditionBuilder
myLootConditionBuilder.invert();

Return Type: AlternativeLootConditionBuilder

script.zs
LootConditionBuilder.or(other as LootConditionBuilder) as AlternativeLootConditionBuilder
ParameterType
Parameter
other
Type
LootConditionBuilder