Package net.minecraft.loot
Class StandaloneLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.StandaloneLootEntry
-
- All Implemented Interfaces:
ILootEntry
- Direct Known Subclasses:
DynamicLootEntry,EmptyLootEntry,ItemLootEntry,TableLootEntry,TagLootEntry
public abstract class StandaloneLootEntry extends LootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStandaloneLootEntry.Builder<T extends StandaloneLootEntry.Builder<T>>(package private) static classStandaloneLootEntry.BuilderImplclassStandaloneLootEntry.Generatorstatic interfaceStandaloneLootEntry.ILootEntryBuilderstatic classStandaloneLootEntry.Serializer<T extends StandaloneLootEntry>
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>compositeFunctionprivate ILootGeneratorentryprotected ILootFunction[]functionsprotected intqualityprotected intweight-
Fields inherited from class net.minecraft.loot.LootEntry
conditions
-
Fields inherited from interface net.minecraft.loot.ILootEntry
ALWAYS_FALSE, ALWAYS_TRUE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandaloneLootEntry(int p_i51253_1_, int p_i51253_2_, ILootCondition[] p_i51253_3_, ILootFunction[] p_i51253_4_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcreateItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)booleanexpand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)static StandaloneLootEntry.Builder<?>simpleBuilder(StandaloneLootEntry.ILootEntryBuilder p_216156_0_)voidvalidate(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, or
-
-
-
-
Field Detail
-
weight
protected final int weight
-
quality
protected final int quality
-
functions
protected final ILootFunction[] functions
-
compositeFunction
private final java.util.function.BiFunction<ItemStack,LootContext,ItemStack> compositeFunction
-
entry
private final ILootGenerator entry
-
-
Constructor Detail
-
StandaloneLootEntry
protected StandaloneLootEntry(int p_i51253_1_, int p_i51253_2_, ILootCondition[] p_i51253_3_, ILootFunction[] p_i51253_4_)
-
-
Method Detail
-
validate
public void validate(ValidationTracker p_225579_1_)
-
createItemStack
protected abstract void createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
-
expand
public boolean expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
-
simpleBuilder
public static StandaloneLootEntry.Builder<?> simpleBuilder(StandaloneLootEntry.ILootEntryBuilder p_216156_0_)
-
-