Class LootTableIdCondition
java.lang.Object
io.github.vampirestudios.vampirelib.loot.LootTableIdCondition
- 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 LootTableIdCondition
extends Object
implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.level.storage.loot.predicates.LootItemConditionTypestatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionstatic LootTableIdCondition.Builderbuilder(net.minecraft.resources.ResourceLocation targetLootTableId) net.minecraft.world.level.storage.loot.predicates.LootItemConditionTypegetType()booleantest(net.minecraft.world.level.storage.loot.LootContext lootContext) 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
public static final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType LOOT_TABLE_ID -
UNKNOWN_LOOT_TABLE
public static final net.minecraft.resources.ResourceLocation UNKNOWN_LOOT_TABLE
-
-
Method Details
-
builder
public static LootTableIdCondition.Builder builder(net.minecraft.resources.ResourceLocation targetLootTableId) -
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 lootContext)
-