Package net.minecraft.loot
Class DynamicLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.StandaloneLootEntry
-
- net.minecraft.loot.DynamicLootEntry
-
- All Implemented Interfaces:
ILootEntry
public class DynamicLootEntry extends StandaloneLootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DynamicLootEntry.Serializer
-
Nested classes/interfaces inherited from class net.minecraft.loot.StandaloneLootEntry
StandaloneLootEntry.Builder<T extends StandaloneLootEntry.Builder<T>>, StandaloneLootEntry.BuilderImpl, StandaloneLootEntry.Generator, StandaloneLootEntry.ILootEntryBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
name
-
Fields inherited from class net.minecraft.loot.StandaloneLootEntry
functions, quality, weight
-
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 private
DynamicLootEntry(ResourceLocation p_i51260_1_, int p_i51260_2_, int p_i51260_3_, ILootCondition[] p_i51260_4_, ILootFunction[] p_i51260_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
static StandaloneLootEntry.Builder<?>
dynamicEntry(ResourceLocation p_216162_0_)
LootPoolEntryType
getType()
-
Methods inherited from class net.minecraft.loot.StandaloneLootEntry
expand, simpleBuilder, validate
-
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
-
name
private final ResourceLocation name
-
-
Constructor Detail
-
DynamicLootEntry
private DynamicLootEntry(ResourceLocation p_i51260_1_, int p_i51260_2_, int p_i51260_3_, ILootCondition[] p_i51260_4_, ILootFunction[] p_i51260_5_)
-
-
Method Detail
-
getType
public LootPoolEntryType getType()
-
createItemStack
public void createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
- Specified by:
createItemStack
in classStandaloneLootEntry
-
dynamicEntry
public static StandaloneLootEntry.Builder<?> dynamicEntry(ResourceLocation p_216162_0_)
-
-