LootConditions
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.
import crafttweaker.api.loot.condition.LootConditions;Static Methods
Return Type: LootConditions
LootConditions.allOf(builders as LootConditionBuilder[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter builders | Type LootConditionBuilder[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.allOf(conditions as LootCondition[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter conditions | Type LootCondition[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.anyOf(builders as LootConditionBuilder[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter builders | Type LootConditionBuilder[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.anyOf(conditions as LootCondition[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter conditions | Type LootCondition[] | Description No Description Provided |
Return Type: LootConditions
// LootConditions.none() as LootConditions
LootConditions.none();Return Type: LootConditions
LootConditions.noneOf(builders as LootConditionBuilder[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter builders | Type LootConditionBuilder[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.noneOf(conditions as LootCondition[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter conditions | Type LootCondition[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.notAllOf(builders as LootConditionBuilder[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter builders | Type LootConditionBuilder[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.notAllOf(conditions as LootCondition[]) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter conditions | Type LootCondition[] | Description No Description Provided |
Return Type: LootConditions
LootConditions.only(builder as LootConditionBuilder) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter builder | Type LootConditionBuilder | Description No Description Provided |
Return Type: LootConditions
LootConditions.only(condition as LootCondition) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter condition | Type LootCondition | Description No Description Provided |
Return Type: LootConditions
LootConditions.randomlyIn(percentageChance as double) as LootConditions| Parameter | Type | Description |
|---|---|---|
Parameter percentageChance | Type double | Description No Description Provided |