public class ForgeLootTableProvider extends LootTableProvider
HASH_FUNCTION
Constructor and Description |
---|
ForgeLootTableProvider(DataGenerator gen) |
Modifier and Type | Method and Description |
---|---|
private boolean |
checkMatchTool(MatchTool lootCondition,
Item expected) |
private boolean |
findAndReplaceInAlternative(Alternative alternative,
Item from,
Tag<Item> to) |
private boolean |
findAndReplaceInLootEntry(LootEntry entry,
Item from,
Tag<Item> to) |
private boolean |
findAndReplaceInLootPool(LootPool lootPool,
Item from,
Tag<Item> to) |
private boolean |
findAndReplaceInLootTableBuilder(LootTable.Builder builder,
Item from,
Tag<Item> to) |
private boolean |
findAndReplaceInParentedLootEntry(ParentedLootEntry entry,
Item from,
Tag<Item> to) |
protected java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> |
getTables() |
private java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>> |
replaceAndFilterChangesOnly(java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>> consumer) |
protected void |
validate(java.util.Map<ResourceLocation,LootTable> map,
ValidationTracker validationtracker) |
act, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
public ForgeLootTableProvider(DataGenerator gen)
protected void validate(java.util.Map<ResourceLocation,LootTable> map, ValidationTracker validationtracker)
validate
in class LootTableProvider
protected java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> getTables()
getTables
in class LootTableProvider
private java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>> replaceAndFilterChangesOnly(java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>> consumer)
private boolean findAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, Tag<Item> to)
private boolean findAndReplaceInLootPool(LootPool lootPool, Item from, Tag<Item> to)
private boolean findAndReplaceInParentedLootEntry(ParentedLootEntry entry, Item from, Tag<Item> to)
private boolean findAndReplaceInLootEntry(LootEntry entry, Item from, Tag<Item> to)
private boolean findAndReplaceInAlternative(Alternative alternative, Item from, Tag<Item> to)