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