Package net.minecraftforge.common.data
Class ForgeLootTableProvider
java.lang.Object
net.minecraft.data.LootTableProvider
net.minecraftforge.common.data.ForgeLootTableProvider
- All Implemented Interfaces:
IDataProvider
Currently used only for replacing shears item to shears tag
-
Field Summary
Fields inherited from interface net.minecraft.data.IDataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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 List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>>>, LootParameterSet>> private Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>> protected void
validate
(Map<ResourceLocation, LootTable> map, ValidationTracker validationtracker) Methods inherited from class net.minecraft.data.LootTableProvider
getName, run
-
Constructor Details
-
ForgeLootTableProvider
-
-
Method Details
-
validate
- Overrides:
validate
in classLootTableProvider
-
getTables
protected List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,LootTable.Builder>>>, getTables()LootParameterSet>> - Overrides:
getTables
in classLootTableProvider
-
replaceAndFilterChangesOnly
private Consumer<BiConsumer<ResourceLocation,LootTable.Builder>> replaceAndFilterChangesOnly(Consumer<BiConsumer<ResourceLocation, LootTable.Builder>> consumer) -
findAndReplaceInLootTableBuilder
private boolean findAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, ITag.INamedTag<Item> to) -
findAndReplaceInLootPool
-
findAndReplaceInParentedLootEntry
private boolean findAndReplaceInParentedLootEntry(ParentedLootEntry entry, Item from, ITag.INamedTag<Item> to) -
findAndReplaceInLootEntry
-
findAndReplaceInAlternative
private boolean findAndReplaceInAlternative(Alternative alternative, Item from, ITag.INamedTag<Item> to) -
checkMatchTool
-