Package net.minecraftforge.common.data
Class ForgeLootTableProvider
- java.lang.Object
-
- net.minecraft.data.LootTableProvider
-
- net.minecraftforge.common.data.ForgeLootTableProvider
-
- All Implemented Interfaces:
IDataProvider
public class ForgeLootTableProvider extends LootTableProvider
Currently used only for replacing shears item to shears tag
-
-
Field Summary
-
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
-
Constructor Summary
Constructors Constructor Description ForgeLootTableProvider(DataGenerator gen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
checkMatchTool(MatchTool lootCondition, Item expected)
private boolean
findAndReplaceInAlternative(Alternative alternative, Item from, ITag.INamedTag<Item> to)
private boolean
findAndReplaceInLootEntry(LootEntry entry, Item from, ITag.INamedTag<Item> to)
private boolean
findAndReplaceInLootPool(LootPool lootPool, Item from, ITag.INamedTag<Item> to)
private boolean
findAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, ITag.INamedTag<Item> to)
private boolean
findAndReplaceInParentedLootEntry(ParentedLootEntry entry, Item from, ITag.INamedTag<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)
-
Methods inherited from class net.minecraft.data.LootTableProvider
getName, run
-
-
-
-
Constructor Detail
-
ForgeLootTableProvider
public ForgeLootTableProvider(DataGenerator gen)
-
-
Method Detail
-
validate
protected void validate(java.util.Map<ResourceLocation,LootTable> map, ValidationTracker validationtracker)
- Overrides:
validate
in classLootTableProvider
-
getTables
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()
- Overrides:
getTables
in classLootTableProvider
-
replaceAndFilterChangesOnly
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)
-
findAndReplaceInLootTableBuilder
private boolean findAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, ITag.INamedTag<Item> to)
-
findAndReplaceInLootPool
private boolean findAndReplaceInLootPool(LootPool lootPool, Item from, ITag.INamedTag<Item> to)
-
findAndReplaceInParentedLootEntry
private boolean findAndReplaceInParentedLootEntry(ParentedLootEntry entry, Item from, ITag.INamedTag<Item> to)
-
findAndReplaceInLootEntry
private boolean findAndReplaceInLootEntry(LootEntry entry, Item from, ITag.INamedTag<Item> to)
-
findAndReplaceInAlternative
private boolean findAndReplaceInAlternative(Alternative alternative, Item from, ITag.INamedTag<Item> to)
-
-