Class LootModifier.Builder
java.lang.Object
top.offsetmonkey538.loottablemodifier.common.api.resource.LootModifier.Builder
- Enclosing class:
- LootModifier
Builder for
LootModifier-
Method Summary
Modifier and TypeMethodDescriptionaction(LootModifierAction.Builder action) Adds an actionbuild()Builds theLootModifierconditionally(LootModifierPredicate.Builder predicate) Sets the predicate
Loot modifier may only have one predicate and this may only be called once!
-
Method Details
-
action
Adds an action- Parameters:
action- the action to add- Returns:
- this
-
conditionally
@Contract("_->this") public LootModifier.Builder conditionally(@NotNull LootModifierPredicate.Builder predicate) Sets the predicate
Loot modifier may only have one predicate and this may only be called once!- Parameters:
predicate- the predicate to use- Returns:
- this
-
build
Builds theLootModifier- Returns:
- a built
LootModifier
-