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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classclassstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,LootContext, ItemStack> private final ILootGeneratorprotected final ILootFunction[]protected final intprotected final intFields inherited from class net.minecraft.loot.LootEntry
conditionsFields inherited from interface net.minecraft.loot.ILootEntry
ALWAYS_FALSE, ALWAYS_TRUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandaloneLootEntry(int p_i51253_1_, int p_i51253_2_, ILootCondition[] p_i51253_3_, ILootFunction[] p_i51253_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcreateItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) booleanexpand(LootContext p_expand_1_, 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, waitMethods inherited from interface net.minecraft.loot.ILootEntry
and, or
-
Field Details
-
weight
protected final int weight -
quality
protected final int quality -
functions
-
compositeFunction
-
entry
-
-
Constructor Details
-
StandaloneLootEntry
protected StandaloneLootEntry(int p_i51253_1_, int p_i51253_2_, ILootCondition[] p_i51253_3_, ILootFunction[] p_i51253_4_)
-
-
Method Details
-
validate
-
createItemStack
-
expand
-
simpleBuilder
public static StandaloneLootEntry.Builder<?> simpleBuilder(StandaloneLootEntry.ILootEntryBuilder p_216156_0_)
-