EntityHasScoreLootConditionBuilder

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.builder.EntityHasScoreLootConditionBuilder;

Implements

EntityHasScoreLootConditionBuilder implements the following interfaces:

LootConditionBuilder

Members

and(other as Builder) as Builder
script.zs
// Builder.and(other as Builder) as Builder;
myBuilder.and(myBuilder);

Parameters:

Return Type: AllOfConditionBuilder

implicit as LootItemCondition
script.zs
// Builder as LootItemCondition
myBuilder as LootItemCondition

Return Type: LootCondition

build() as LootItemCondition
script.zs
// Builder.build() as LootItemCondition;
myBuilder.build();

Return Type: LootCondition

invert() as Builder
script.zs
// Builder.invert() as Builder;
myBuilder.invert();

Return Type: LootConditionBuilder

or(other as Builder) as Builder
script.zs
// Builder.or(other as Builder) as Builder;
myBuilder.or(myBuilder);

Parameters:

Return Type: AnyOfConditionBuilder

withScore(name as string, range as IntRange) as Builder
script.zs
// Builder.withScore(name as string, range as IntRange) as Builder;
myBuilder.withScore(myString, myIntRange);

Parameters:

name Type: string
range Type: IntRange

Return Type: EntityHasScoreLootConditionBuilder