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
Modifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
ConstructorDescriptionForgeLootTableProvider
(PackOutput pack, CompletableFuture<HolderLookup.Provider> lookup) -
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
(Registry<LootTable> map, ValidationContext validationcontext, ProblemReporter report) Methods inherited from class net.minecraft.data.loot.LootTableProvider
getName, run
-
Field Details
-
POOLS
- See Also:
-
ENTRIES
- See Also:
-
CONDITIONS
- See Also:
-
CHILDREN
- See Also:
-
ENTRY_CONDITION
- See Also:
-
TERMS
- See Also:
-
-
Constructor Details
-
ForgeLootTableProvider
-
-
Method Details
-
validate
protected void validate(Registry<LootTable> map, ValidationContext validationcontext, ProblemReporter report) - 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
-