Class TablePredicate.Builder
java.lang.Object
top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.table.TablePredicate.Builder
- All Implemented Interfaces:
LootModifierPredicate.Builder
- Enclosing class:
- TablePredicate
Builder for
TablePredicate-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the predicateAdds a loot table to matchname(@NotNull RegexPattern name) Adds aRegexPatternto match the loot table id with.Adds a type to match.type(@NotNull RegexPattern type) Adds aRegexPatternto match the loot table type with.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface top.offsetmonkey538.loottablemodifier.common.api.resource.predicate.LootModifierPredicate.Builder
and, invert, or
-
Method Details
-
name
Adds a loot table to match- Parameters:
name- the identifier of the loot table to match- Returns:
- this
-
name
Adds aRegexPatternto match the loot table id with.- Parameters:
name- theRegexPatternto match- Returns:
- this
-
type
Adds a type to match.- Parameters:
type- the identifier of the type to match- Returns:
- this
-
type
Adds aRegexPatternto match the loot table type with.- Parameters:
type- theRegexPatternof the type to match- Returns:
- this
-
build
Description copied from interface:LootModifierPredicate.BuilderBuilds the predicate- Specified by:
buildin interfaceLootModifierPredicate.Builder- Returns:
- a built
LootModifierPredicate
-