public class TagEntry extends LeafEntry
Modifier and Type | Class and Description |
---|---|
static class |
TagEntry.Serializer |
LeafEntry.BasicBuilder, LeafEntry.Builder<T extends LeafEntry.Builder<T>>, LeafEntry.Choice, LeafEntry.Factory
Modifier and Type | Field and Description |
---|---|
private boolean |
expand |
private Tag<Item> |
name |
conditions
ALWAYS_FALSE, ALWAYS_TRUE
Modifier | Constructor and Description |
---|---|
private |
TagEntry(Tag<Item> name,
boolean expand,
int weight,
int quality,
LootCondition[] conditions,
LootFunction[] functions) |
Modifier and Type | Method and Description |
---|---|
static LeafEntry.Builder<?> |
builder(Tag<Item> name) |
boolean |
expand(LootContext context,
Consumer<LootChoice> choiceConsumer) |
void |
generateLoot(Consumer<ItemStack> lootConsumer,
LootContext context) |
LootPoolEntryType |
getType() |
private boolean |
grow(LootContext context,
Consumer<LootChoice> lootChoiceExpander) |
test
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, or
private TagEntry(Tag<Item> name, boolean expand, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
public LootPoolEntryType getType()
getType
in class LootPoolEntry
public void generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
generateLoot
in class LeafEntry
private boolean grow(LootContext context, Consumer<LootChoice> lootChoiceExpander)
public boolean expand(LootContext context, Consumer<LootChoice> choiceConsumer)
expand
in interface EntryCombiner
expand
in class LeafEntry
public static LeafEntry.Builder<?> builder(Tag<Item> name)