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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancheckMatchTool(MatchTool lootCondition, Item expected) private booleanfindAndReplaceInAlternative(AlternativeLootItemCondition alternative, Item from, ToolAction toolAction) private booleanfindAndReplaceInLootEntry(LootPoolEntryContainer entry, Item from, ToolAction toolAction) private booleanfindAndReplaceInLootPool(LootPool lootPool, Item from, ToolAction toolAction) private booleanfindAndReplaceInLootTableBuilder(LootTable.Builder builder, Item from, ToolAction toolAction) private booleanfindAndReplaceInParentedLootEntry(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 voidvalidate(Map<ResourceLocation, LootTable> map, ValidationContext validationtracker) Methods inherited from class net.minecraft.data.loot.LootTableProvider
getName, run
-
Constructor Details
-
ForgeLootTableProvider
-
-
Method Details
-
validate
- Overrides:
validatein classLootTableProvider
-
getTables
protected List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<ResourceLocation,LootTable.Builder>>>, getTables()LootContextParamSet>> - Overrides:
getTablesin 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
-