-
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.
Fix bugs. Add cat spirit. Signed-off-by: 秋雨落 <[email protected]>
- Loading branch information
Showing
45 changed files
with
424 additions
and
224 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/CatsPlusDataImpl.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,18 @@ | ||
package cuteneko.catsplus.fabric; | ||
|
||
import cuteneko.catsplus.fabric.data.CatPlayerFabric; | ||
import cuteneko.catsplus.fabric.data.GeniusCatFabric; | ||
import cuteneko.catsplus.data.ICatPlayer; | ||
import cuteneko.catsplus.data.IGeniusCat; | ||
import net.minecraft.entity.passive.CatEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
|
||
public class CatsPlusDataImpl { | ||
public static ICatPlayer getCatPlayer(PlayerEntity player) { | ||
return new CatPlayerFabric(player); | ||
} | ||
|
||
public static IGeniusCat getGeniusCat(CatEntity cat) { | ||
return new GeniusCatFabric(cat); | ||
} | ||
} |
18 changes: 0 additions & 18 deletions
18
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/CatsPlusPlatformImpl.java
This file was deleted.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
...o/catsplus/fabric/platform/CatPlayer.java → ...catsplus/fabric/data/CatPlayerFabric.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
6 changes: 3 additions & 3 deletions
6
...neko/catsplus/fabric/data/ModDataGen.java → .../catsplus/fabric/data/gen/ModDataGen.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
2 changes: 1 addition & 1 deletion
2
...lus/fabric/data/ModItemModelProvider.java → ...fabric/data/gen/ModItemModelProvider.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
2 changes: 1 addition & 1 deletion
2
...tsplus/fabric/data/ModRecipeProvider.java → ...us/fabric/data/gen/ModRecipeProvider.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
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
4 changes: 2 additions & 2 deletions
4
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-21T08:45:46.2924207 Cats+/Language (en_us) | ||
8e251fab5ce5c3f45ea9ac58c25f48ec8466f03f assets\catsplus\lang\en_us.json | ||
// 1.20.4 2024-02-21T21:09:29.4662143 Cats+/Language (en_us) | ||
d6583927b847b4b2a3794090b7ac5fceccb13c82 assets\catsplus\lang\en_us.json |
4 changes: 2 additions & 2 deletions
4
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-21T08:45:46.2934204 Cats+/Language (zh_cn) | ||
06df21f6ac57e8fe479a3cec1a60e08adbdf3cdb assets\catsplus\lang\zh_cn.json | ||
// 1.20.4 2024-02-21T21:09:29.4682147 Cats+/Language (zh_cn) | ||
7931bcf23f857507e9bead0a1e1f3d793d6d5915 assets\catsplus\lang\zh_cn.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-21T08:45:46.2924207 Cats+/Model Definitions | ||
// 1.20.4 2024-02-21T21:09:29.4682147 Cats+/Model Definitions | ||
882a1bd93aa3b1750ec3f9e2176a49e5561f45a9 assets\catsplus\models\item\totemeow.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
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,41 @@ | ||
package cuteneko.catsplus; | ||
|
||
import cuteneko.catsplus.data.ICatSpirit; | ||
import cuteneko.catsplus.data.impl.CatSpirit; | ||
import cuteneko.catsplus.item.ModItems; | ||
import cuteneko.catsplus.data.ICatBag; | ||
import cuteneko.catsplus.data.ICatPlayer; | ||
import cuteneko.catsplus.data.IGeniusCat; | ||
import cuteneko.catsplus.data.impl.CatBag; | ||
import dev.architectury.injectables.annotations.ExpectPlatform; | ||
import net.minecraft.entity.passive.CatEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.item.ItemStack; | ||
|
||
public class CatsPlusData { | ||
@ExpectPlatform | ||
public static ICatPlayer getCatPlayer(PlayerEntity player) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
@ExpectPlatform | ||
public static IGeniusCat getGeniusCat(CatEntity cat) { | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
public static ICatBag getCatBag(ItemStack bag) { | ||
if (!bag.isOf(ModItems.CAT_BAG.get())) { | ||
throw new IllegalArgumentException(); | ||
} | ||
|
||
return new CatBag(bag); | ||
} | ||
|
||
public static ICatSpirit getCatSpirit(ItemStack spirit) { | ||
if (!spirit.isOf(ModItems.CAT_SPIRIT.get())) { | ||
throw new IllegalArgumentException(); | ||
} | ||
|
||
return new CatSpirit(spirit); | ||
} | ||
} |
Oops, something went wrong.