Package net.minecraftforge.common.data
Class ForgeLootTableProvider
java.lang.Object
net.minecraft.data.loot.LootTableProvider
net.minecraftforge.common.data.ForgeLootTableProvider
- All Implemented Interfaces:
DataProvider
Currently used only for replacing shears item to shears_dig tool action
-
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkMatchTool
(MatchTool lootCondition, Item expected) private boolean
findAndReplaceInAlternative
(AlternativeLootItemCondition alternative, Item from, ToolAction toolAction) private boolean
findAndReplaceInLootEntry
(LootPoolEntryContainer entry, Item from, ToolAction toolAction) private boolean
findAndReplaceInLootPool
(LootPool lootPool, Item from, ToolAction toolAction) private boolean
findAndReplaceInLootTableBuilder
(LootTable.Builder builder, Item from, ToolAction toolAction) private boolean
findAndReplaceInParentedLootEntry
(CompositeEntryBase entry, Item from, ToolAction toolAction) protected List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>>>, LootContextParamSet>> private Consumer<BiConsumer<ResourceLocation,
LootTable.Builder>> protected void
validate
(Map<ResourceLocation, LootTable> map, ValidationContext validationtracker) Methods inherited from class net.minecraft.data.loot.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()LootContextParamSet>> - 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, ToolAction toolAction) -
findAndReplaceInLootPool
-
findAndReplaceInParentedLootEntry
private boolean findAndReplaceInParentedLootEntry(CompositeEntryBase entry, Item from, ToolAction toolAction) -
findAndReplaceInLootEntry
private boolean findAndReplaceInLootEntry(LootPoolEntryContainer entry, Item from, ToolAction toolAction) -
findAndReplaceInAlternative
private boolean findAndReplaceInAlternative(AlternativeLootItemCondition alternative, Item from, ToolAction toolAction) -
checkMatchTool
-