Class LootTableIdRegexCondition
java.lang.Object
com.blamejared.crafttweaker.impl.loot.LootTableIdRegexCondition
- All Implemented Interfaces:
Predicate<net.minecraft.world.level.storage.loot.LootContext>,net.minecraft.world.level.storage.loot.LootContextUser,net.minecraft.world.level.storage.loot.predicates.LootItemCondition
public class LootTableIdRegexCondition
extends Object
implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Buildernet.minecraft.world.level.storage.loot.predicates.LootItemConditionTypegetType()booleantest(net.minecraft.world.level.storage.loot.LootContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
Field Details
-
LOOT_TABLE_ID_REGEX
public static final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType LOOT_TABLE_ID_REGEX
-
-
Method Details
-
builder
public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder builder(Pattern regex) -
builder
public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder builder(String regex) -
getType
public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
test
public boolean test(net.minecraft.world.level.storage.loot.LootContext context)
-