public class DynamicEntry extends LeafEntry
Modifier and Type | Class and Description |
---|---|
static class |
DynamicEntry.Serializer |
LeafEntry.BasicBuilder, LeafEntry.Builder<T extends LeafEntry.Builder<T>>, LeafEntry.Choice, LeafEntry.Factory
Modifier and Type | Field and Description |
---|---|
static Identifier |
instance |
private Identifier |
name |
conditions
ALWAYS_FALSE, ALWAYS_TRUE
Modifier | Constructor and Description |
---|---|
private |
DynamicEntry(Identifier name,
int weight,
int quality,
LootCondition[] conditions,
LootFunction[] functions) |
Modifier and Type | Method and Description |
---|---|
static LeafEntry.Builder<?> |
builder(Identifier name) |
void |
drop(Consumer<ItemStack> itemDropper,
LootContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, or
public static final Identifier instance
private final Identifier name
private DynamicEntry(Identifier name, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)
public void drop(Consumer<ItemStack> itemDropper, LootContext context)
public static LeafEntry.Builder<?> builder(Identifier name)