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
Modifier and TypeClassDescriptionstatic class
(package private) static class
class
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,
LootContext, ItemStack> private final ILootGenerator
protected final ILootFunction[]
protected final int
protected final int
Fields inherited from class net.minecraft.loot.LootEntry
conditions
Fields inherited from interface net.minecraft.loot.ILootEntry
ALWAYS_FALSE, ALWAYS_TRUE
-
Constructor Summary
ModifierConstructorDescriptionprotected
StandaloneLootEntry
(int p_i51253_1_, int p_i51253_2_, ILootCondition[] p_i51253_3_, ILootFunction[] p_i51253_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) boolean
expand
(LootContext p_expand_1_, Consumer<ILootGenerator> p_expand_2_) static StandaloneLootEntry.Builder<?>
simpleBuilder
(StandaloneLootEntry.ILootEntryBuilder p_216156_0_) 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, 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_)
-