Package net.minecraft.loot
Class TagLootEntry
- java.lang.Object
-
- net.minecraft.loot.LootEntry
-
- net.minecraft.loot.StandaloneLootEntry
-
- net.minecraft.loot.TagLootEntry
-
- All Implemented Interfaces:
ILootEntry
public class TagLootEntry extends StandaloneLootEntry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TagLootEntry.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 boolean
expand
private ITag<Item>
tag
-
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
TagLootEntry(ITag<Item> p_i51248_1_, boolean p_i51248_2_, int p_i51248_3_, int p_i51248_4_, ILootCondition[] p_i51248_5_, ILootFunction[] p_i51248_6_)
-
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_)
boolean
expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
private boolean
expandTag(LootContext p_216179_1_, java.util.function.Consumer<ILootGenerator> p_216179_2_)
static StandaloneLootEntry.Builder<?>
expandTag(ITag<Item> p_216176_0_)
LootPoolEntryType
getType()
-
Methods inherited from class net.minecraft.loot.StandaloneLootEntry
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
-
-
-
-
Constructor Detail
-
TagLootEntry
private TagLootEntry(ITag<Item> p_i51248_1_, boolean p_i51248_2_, int p_i51248_3_, int p_i51248_4_, ILootCondition[] p_i51248_5_, ILootFunction[] p_i51248_6_)
-
-
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
-
expandTag
private boolean expandTag(LootContext p_216179_1_, java.util.function.Consumer<ILootGenerator> p_216179_2_)
-
expand
public boolean expand(LootContext p_expand_1_, java.util.function.Consumer<ILootGenerator> p_expand_2_)
- Specified by:
expand
in interfaceILootEntry
- Overrides:
expand
in classStandaloneLootEntry
-
expandTag
public static StandaloneLootEntry.Builder<?> expandTag(ITag<Item> p_216176_0_)
-
-