Package net.minecraftforge.common.loot
Class LootTableIdCondition
- java.lang.Object
-
- net.minecraftforge.common.loot.LootTableIdCondition
-
- All Implemented Interfaces:
java.util.function.Predicate<LootContext>
,ILootCondition
,IParameterized
public class LootTableIdCondition extends java.lang.Object implements ILootCondition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LootTableIdCondition.Builder
static class
LootTableIdCondition.Serializer
-
Nested classes/interfaces inherited from interface net.minecraft.loot.conditions.ILootCondition
ILootCondition.IBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static LootConditionType
LOOT_TABLE_ID
private ResourceLocation
targetLootTableId
static ResourceLocation
UNKNOWN_LOOT_TABLE
-
Constructor Summary
Constructors Modifier Constructor Description private
LootTableIdCondition(ResourceLocation targetLootTableId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LootTableIdCondition.Builder
builder(ResourceLocation targetLootTableId)
LootConditionType
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.loot.IParameterized
getReferencedContextParams, validate
-
-
-
-
Field Detail
-
LOOT_TABLE_ID
public static final LootConditionType LOOT_TABLE_ID
-
UNKNOWN_LOOT_TABLE
public static final ResourceLocation UNKNOWN_LOOT_TABLE
-
targetLootTableId
private final ResourceLocation targetLootTableId
-
-
Constructor Detail
-
LootTableIdCondition
private LootTableIdCondition(ResourceLocation targetLootTableId)
-
-
Method Detail
-
getType
public LootConditionType getType()
- Specified by:
getType
in interfaceILootCondition
-
test
public boolean test(LootContext lootContext)
- Specified by:
test
in interfacejava.util.function.Predicate<LootContext>
-
builder
public static LootTableIdCondition.Builder builder(ResourceLocation targetLootTableId)
-
-