-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #38
- Loading branch information
Showing
20 changed files
with
161 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,5 @@ | |
{ | ||
"item": "avaritia:record_fragment" | ||
} | ||
], | ||
"result": { | ||
"item": "avaritia:infinity_catalyst" | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
src/generated/resources/data/avaritia/tags/items/singularity.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"values": [ | ||
"avaritia:singularity" | ||
] | ||
} |
7 changes: 0 additions & 7 deletions
7
src/main/java/committee/nova/mods/avaritia/api/common/crafting/ICraftRecipe.java
This file was deleted.
Oops, something went wrong.
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
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
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
45 changes: 45 additions & 0 deletions
45
src/main/java/committee/nova/mods/avaritia/init/data/provider/ModItemTags.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package committee.nova.mods.avaritia.init.data.provider; | ||
|
||
import committee.nova.mods.avaritia.Static; | ||
import committee.nova.mods.avaritia.init.handler.SingularityRegistryHandler; | ||
import committee.nova.mods.avaritia.init.registry.ModBlocks; | ||
import committee.nova.mods.avaritia.init.registry.ModItems; | ||
import committee.nova.mods.avaritia.init.registry.ModTags; | ||
import committee.nova.mods.avaritia.util.SingularityUtil; | ||
import net.minecraft.core.HolderLookup; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.data.DataGenerator; | ||
import net.minecraft.data.tags.IntrinsicHolderTagsProvider; | ||
import net.minecraft.tags.BlockTags; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraftforge.common.data.ExistingFileHelper; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
/** | ||
* Author cnlimiter | ||
* CreateTime 2023/6/17 23:35 | ||
* Name ModBlockTags | ||
* Description | ||
*/ | ||
|
||
public class ModItemTags extends IntrinsicHolderTagsProvider<Item> { | ||
|
||
public ModItemTags(DataGenerator output, CompletableFuture<HolderLookup.Provider> future, @Nullable ExistingFileHelper existingFileHelper) { | ||
super(output.getPackOutput(), Registries.ITEM, future, block -> block.builtInRegistryHolder().key(), Static.MOD_ID, existingFileHelper); | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "Avaritia Item Tags"; | ||
} | ||
|
||
|
||
@Override | ||
protected void addTags(HolderLookup.@NotNull Provider p_256380_) { | ||
tag(ModTags.SINGULARITY).add(ModItems.singularity.get()); | ||
} | ||
} |
Oops, something went wrong.