Class ConditionAddAction.Builder
java.lang.Object
top.offsetmonkey538.loottablemodifier.common.api.resource.action.condition.ConditionAddAction.Builder
- All Implemented Interfaces:
LootModifierAction.Builder
- Enclosing class:
- ConditionAddAction
Builder for
ConditionAddAction-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the actioncondition(LootCondition condition) Adds a conditionThe conditions will only be applied to matched entriesThe conditions will only be applied to matched pools
-
Method Details
-
condition
Adds a condition- Parameters:
condition- The condition to add- Returns:
- this
-
onlyPools
The conditions will only be applied to matched pools- Returns:
- this
-
onlyEntries
The conditions will only be applied to matched entries- Returns:
- this
-
build
Description copied from interface:LootModifierAction.BuilderBuilds the action- Specified by:
buildin interfaceLootModifierAction.Builder- Returns:
- a built
LootModifierAction
-