Package net.minecraft.loot
Class ItemLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.StandaloneLootEntry
-
- net.minecraft.loot.ItemLootEntry
-
- All Implemented Interfaces:
ILootEntry
public class ItemLootEntry extends StandaloneLootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemLootEntry.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 Item
item
-
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
ItemLootEntry(Item p_i51255_1_, int p_i51255_2_, int p_i51255_3_, ILootCondition[] p_i51255_4_, ILootFunction[] p_i51255_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<?>
lootTableItem(IItemProvider p_216168_0_)
-
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
-
item
private final Item item
-
-
Constructor Detail
-
ItemLootEntry
private ItemLootEntry(Item p_i51255_1_, int p_i51255_2_, int p_i51255_3_, ILootCondition[] p_i51255_4_, ILootFunction[] p_i51255_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
-
lootTableItem
public static StandaloneLootEntry.Builder<?> lootTableItem(IItemProvider p_216168_0_)
-
-