-
-
Notifications
You must be signed in to change notification settings - Fork 546
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make datagen compile (crashes at runtime, but it compiles)
- Loading branch information
1 parent
6eb4b06
commit a0edb8f
Showing
40 changed files
with
198 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/datagen/additions/java/mekanism/additions/common/loot/AdditionsLootProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package mekanism.additions.common.loot; | ||
|
||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
import mekanism.common.loot.BaseLootProvider; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.level.storage.loot.parameters.LootContextParamSets; | ||
|
||
public class AdditionsLootProvider extends BaseLootProvider { | ||
|
||
public AdditionsLootProvider(PackOutput output) { | ||
public AdditionsLootProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> provider) { | ||
super(output, List.of( | ||
new SubProviderEntry(AdditionsBlockLootTables::new, LootContextParamSets.BLOCK), | ||
new SubProviderEntry(AdditionsEntityLootTables::new, LootContextParamSets.ENTITY) | ||
)); | ||
), provider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/datagen/defense/java/mekanism/defense/common/DefenseRecipeProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/datagen/defense/java/mekanism/defense/common/loot/DefenseLootProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package mekanism.defense.common.loot; | ||
|
||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
import mekanism.common.loot.BaseLootProvider; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.level.storage.loot.parameters.LootContextParamSets; | ||
|
||
public class DefenseLootProvider extends BaseLootProvider { | ||
|
||
public DefenseLootProvider(PackOutput output) { | ||
public DefenseLootProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> provider) { | ||
super(output, List.of( | ||
new SubProviderEntry(DefenseBlockLootTables::new, LootContextParamSets.BLOCK) | ||
)); | ||
), provider); | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
src/datagen/generators/java/mekanism/generators/common/GeneratorsAdvancementProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/datagen/generators/java/mekanism/generators/common/loot/GeneratorsLootProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
package mekanism.generators.common.loot; | ||
|
||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
import mekanism.common.loot.BaseLootProvider; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.data.PackOutput; | ||
import net.minecraft.world.level.storage.loot.parameters.LootContextParamSets; | ||
|
||
public class GeneratorsLootProvider extends BaseLootProvider { | ||
|
||
public GeneratorsLootProvider(PackOutput output) { | ||
public GeneratorsLootProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> provider) { | ||
super(output, List.of( | ||
new SubProviderEntry(GeneratorsBlockLootTables::new, LootContextParamSets.BLOCK) | ||
)); | ||
), provider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.