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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.data.loot.LootTableProvider
LootTableProvider.SubProviderEntry
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
checkMatchTool
(MatchTool lootCondition, Item expected) private boolean
findAndReplaceInComposite
(CompositeLootItemCondition 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) private LootTableSubProvider
replaceAndFilterChangesOnly
(LootTableSubProvider subProvider) protected void
validate
(Map<ResourceLocation, LootTable> map, ValidationContext validationcontext) Methods inherited from class net.minecraft.data.loot.LootTableProvider
getName, run
-
Constructor Details
-
ForgeLootTableProvider
-
-
Method Details
-
validate
- Overrides:
validate
in classLootTableProvider
-
getTables
- Overrides:
getTables
in classLootTableProvider
-
replaceAndFilterChangesOnly
-
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) -
findAndReplaceInComposite
private boolean findAndReplaceInComposite(CompositeLootItemCondition alternative, Item from, ToolAction toolAction) -
checkMatchTool
-