Class LootTableIdCondition
java.lang.Object
net.neoforged.neoforge.common.loot.LootTableIdCondition
- All Implemented Interfaces:
Predicate<LootContext>
,LootContextUser
,LootItemCondition
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<LootTableIdCondition> static final LootItemConditionType
private final ResourceLocation
static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootTableIdCondition.Builder
builder
(ResourceLocation targetLootTableId) getType()
boolean
test
(LootContext lootContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getType
in interfaceLootItemCondition
-
test
- Specified by:
test
in interfacePredicate<LootContext>
-
builder
-