Class LootTableIdCondition
java.lang.Object
net.neoforged.neoforge.common.loot.LootTableIdCondition
- All Implemented Interfaces:
Predicate<LootContext>,LootContextUser,LootItemCondition
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<LootTableIdCondition> static final LootItemConditionTypeprivate final ResourceLocationstatic final ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LootTableIdCondition.Builderbuilder(ResourceLocation targetLootTableId) getType()booleantest(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
-
CODEC
-
LOOT_TABLE_ID
-
UNKNOWN_LOOT_TABLE
-
targetLootTableId
-
-
Constructor Details
-
LootTableIdCondition
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceLootItemCondition
-
test
- Specified by:
testin interfacePredicate<LootContext>
-
builder
-