-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 秋雨落 <[email protected]>
- Loading branch information
Showing
11 changed files
with
51 additions
and
13 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
22 changes: 22 additions & 0 deletions
22
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/data/gen/ModItemTagProvider.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,22 @@ | ||
package cuteneko.catsplus.fabric.data.gen; | ||
|
||
import cuteneko.catsplus.tag.ModItemTags; | ||
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; | ||
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider; | ||
import net.minecraft.item.Items; | ||
import net.minecraft.registry.RegistryWrapper; | ||
|
||
import java.util.concurrent.CompletableFuture; | ||
|
||
public class ModItemTagProvider extends FabricTagProvider.ItemTagProvider { | ||
public ModItemTagProvider(FabricDataOutput output, CompletableFuture<RegistryWrapper.WrapperLookup> completableFuture) { | ||
super(output, completableFuture); | ||
} | ||
|
||
@Override | ||
protected void configure(RegistryWrapper.WrapperLookup arg) { | ||
getOrCreateTagBuilder(ModItemTags.COOKED_FISHES) | ||
.add(Items.COOKED_COD) | ||
.add(Items.COOKED_SALMON); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/15e558425d03769b4c939a16ffd55f843ac56d0f
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,2 +1,2 @@ | ||
// 1.20.4 2024-02-21T21:09:29.4662143 Cats+/Language (en_us) | ||
// 1.20.4 2024-02-21T21:16:16.496054 Cats+/Language (en_us) | ||
d6583927b847b4b2a3794090b7ac5fceccb13c82 assets\catsplus\lang\en_us.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/49e5c65ca1ab59f598f710846fb0f8d549021d95
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,2 +1,2 @@ | ||
// 1.20.4 2024-02-21T21:09:29.4682147 Cats+/Language (zh_cn) | ||
// 1.20.4 2024-02-21T21:16:16.4970528 Cats+/Language (zh_cn) | ||
7931bcf23f857507e9bead0a1e1f3d793d6d5915 assets\catsplus\lang\zh_cn.json |
2 changes: 2 additions & 0 deletions
2
src/main/generated/.cache/aaa80d5935224bd236f347a63f6c896153bd61b8
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,2 @@ | ||
// 1.20.4 2024-02-21T21:16:16.4970528 Cats+/Tags for minecraft:item | ||
491c16568754e85de8983f2660885e26edfb506a data\catsplus\tags\items\cooked_fishes.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/d5ee957bafb940ae78b04b56b65ec8b9002aa9dc
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
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/dcf38aaf6b2f28016e34adbe561ad13afee480c8
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,2 +1,2 @@ | ||
// 1.20.4 2024-02-21T21:09:29.4682147 Cats+/Model Definitions | ||
// 1.20.4 2024-02-21T21:16:16.496054 Cats+/Model Definitions | ||
882a1bd93aa3b1750ec3f9e2176a49e5561f45a9 assets\catsplus\models\item\totemeow.json |
7 changes: 7 additions & 0 deletions
7
src/main/generated/data/catsplus/tags/items/cooked_fishes.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,7 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"minecraft:cooked_cod", | ||
"minecraft:cooked_salmon" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package cuteneko.catsplus.tag; | ||
|
||
import cuteneko.catsplus.CatsPlus; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class ModItemTags { | ||
public static final TagKey<Item> COOKED_FISHES = TagKey.of(RegistryKeys.ITEM, new Identifier(CatsPlus.MODID, "cooked_fishes")); | ||
} |
11 changes: 2 additions & 9 deletions
11
src/main/java/cuteneko/catsplus/utility/GeniusCatHelper.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