Package net.minecraft.loot
Class TableLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.StandaloneLootEntry
-
- net.minecraft.loot.TableLootEntry
-
- All Implemented Interfaces:
ILootEntry
public class TableLootEntry extends StandaloneLootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableLootEntry.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
TableLootEntry(ResourceLocation p_i51251_1_, int p_i51251_2_, int p_i51251_3_, ILootCondition[] p_i51251_4_, ILootFunction[] p_i51251_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_)
LootPoolEntryType
getType()
static StandaloneLootEntry.Builder<?>
lootTableReference(ResourceLocation p_216171_0_)
void
validate(ValidationTracker p_225579_1_)
-
Methods inherited from class net.minecraft.loot.StandaloneLootEntry
expand, simpleBuilder
-
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
-
TableLootEntry
private TableLootEntry(ResourceLocation p_i51251_1_, int p_i51251_2_, int p_i51251_3_, ILootCondition[] p_i51251_4_, ILootFunction[] p_i51251_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
-
validate
public void validate(ValidationTracker p_225579_1_)
- Overrides:
validate
in classStandaloneLootEntry
-
lootTableReference
public static StandaloneLootEntry.Builder<?> lootTableReference(ResourceLocation p_216171_0_)
-
-