Package net.minecraft.loot
Class LootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- All Implemented Interfaces:
ILootEntry
- Direct Known Subclasses:
ParentedLootEntry
,StandaloneLootEntry
public abstract class LootEntry extends java.lang.Object implements ILootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LootEntry.Builder<T extends LootEntry.Builder<T>>
static class
LootEntry.Serializer<T extends LootEntry>
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Predicate<LootContext>
compositeCondition
protected ILootCondition[]
conditions
-
Fields inherited from interface net.minecraft.loot.ILootEntry
ALWAYS_FALSE, ALWAYS_TRUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LootEntry(ILootCondition[] p_i51254_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
canRun(LootContext p_216141_1_)
abstract LootPoolEntryType
getType()
void
validate(ValidationTracker p_225579_1_)
-
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.ILootEntry
and, expand, or
-
-
-
-
Field Detail
-
conditions
protected final ILootCondition[] conditions
-
compositeCondition
private final java.util.function.Predicate<LootContext> compositeCondition
-
-
Constructor Detail
-
LootEntry
protected LootEntry(ILootCondition[] p_i51254_1_)
-
-
Method Detail
-
validate
public void validate(ValidationTracker p_225579_1_)
-
canRun
protected final boolean canRun(LootContext p_216141_1_)
-
getType
public abstract LootPoolEntryType getType()
-
-