-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from skyinr/merge_taste
feat: 将Taste与FoodTate进行合并
- Loading branch information
Showing
33 changed files
with
244 additions
and
263 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
SinoFeast/src/generated/resources/.cache/846d07533e162716ccdedb28c63fb28410a5b92b
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
SinoFeast/src/generated/resources/.cache/c882a832edbcf4908b2b02386563fc45527884e0
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,10 @@ | ||
// 1.20.1 2023-08-08T21:53:40.393013 food_tastes generator for sinofeast | ||
852e90ef37aa9d07b79f85d2ab26904bbcf05cf9 data/sinofeast/food_tastes/acrid.json | ||
03676f66215266b6431df247540fcbe77acbd637 data/sinofeast/food_tastes/bitter.json | ||
9c052da1ce7f8624ca526c6668c74a051caaa53c data/sinofeast/food_tastes/empty.json | ||
383f169a0131f72c7aa6e0531681d9ce93512cf0 data/sinofeast/food_tastes/fresh.json | ||
1d95042b928ab9029a35bc875da588508b6bc48e data/sinofeast/food_tastes/pungent.json | ||
367454eac372bd07428d1850f06457da88b8f03a data/sinofeast/food_tastes/salty.json | ||
7efebb0c2d2f4fb39d04dc6552065323dc0d9e60 data/sinofeast/food_tastes/sour.json | ||
6bd7be539aad86f07a3a7eb9821141a84f8d39f9 data/sinofeast/food_tastes/spicy.json | ||
ea71cc353559fe20ac0008c18a7f3ff0f686b38b data/sinofeast/food_tastes/sweet.json |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/acrid.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": true, | ||
"like_weight": 5, | ||
"name": "sinofeast:acrid", | ||
"taste_key": "sinofeast:tastes/acrid", | ||
"taste_key_primary": "sinofeast:tastes/primary/acrid", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/acrid" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/bitter.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": false, | ||
"like_weight": 5, | ||
"name": "sinofeast:bitter", | ||
"taste_key": "sinofeast:tastes/bitter", | ||
"taste_key_primary": "sinofeast:tastes/primary/bitter", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/bitter" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/empty.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,9 @@ | ||
{ | ||
"dislike_weight": 0, | ||
"is_advanced": false, | ||
"like_weight": 0, | ||
"name": "sinofeast:empty", | ||
"taste_key": "sinofeast:tastes/empty", | ||
"taste_key_primary": "sinofeast:tastes/primary/empty", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/empty" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/fresh.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": true, | ||
"like_weight": 5, | ||
"name": "sinofeast:fresh", | ||
"taste_key": "sinofeast:tastes/fresh", | ||
"taste_key_primary": "sinofeast:tastes/primary/fresh", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/fresh" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/pungent.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": true, | ||
"like_weight": 5, | ||
"name": "sinofeast:pungent", | ||
"taste_key": "sinofeast:tastes/pungent", | ||
"taste_key_primary": "sinofeast:tastes/primary/pungent", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/pungent" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/salty.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": false, | ||
"like_weight": 5, | ||
"name": "sinofeast:salty", | ||
"taste_key": "sinofeast:tastes/salty", | ||
"taste_key_primary": "sinofeast:tastes/primary/salty", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/salty" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/sour.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": false, | ||
"like_weight": 5, | ||
"name": "sinofeast:sour", | ||
"taste_key": "sinofeast:tastes/sour", | ||
"taste_key_primary": "sinofeast:tastes/primary/sour", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/sour" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/spicy.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": false, | ||
"like_weight": 5, | ||
"name": "sinofeast:spicy", | ||
"taste_key": "sinofeast:tastes/spicy", | ||
"taste_key_primary": "sinofeast:tastes/primary/spicy", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/spicy" | ||
} |
9 changes: 9 additions & 0 deletions
9
SinoFeast/src/generated/resources/data/sinofeast/food_tastes/sweet.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,9 @@ | ||
{ | ||
"dislike_weight": 5, | ||
"is_advanced": false, | ||
"like_weight": 5, | ||
"name": "sinofeast:sweet", | ||
"taste_key": "sinofeast:tastes/sweet", | ||
"taste_key_primary": "sinofeast:tastes/primary/sweet", | ||
"taste_key_secondary": "sinofeast:tastes/secondary/sweet" | ||
} |
9 changes: 0 additions & 9 deletions
9
SinoFeast/src/generated/resources/data/sinoseries/sinofeast/food_tastes/acrid.json
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
21 changes: 21 additions & 0 deletions
21
...Feast/src/main/java/games/moegirl/sinocraft/sinofeast/data/food/taste/FoodTasteCodec.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,21 @@ | ||
package games.moegirl.sinocraft.sinofeast.data.food.taste; | ||
|
||
import com.mojang.serialization.Codec; | ||
import com.mojang.serialization.codecs.RecordCodecBuilder; | ||
import net.minecraft.core.registries.Registries; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.TagKey; | ||
|
||
public class FoodTasteCodec { | ||
public static final Codec<FoodTaste> TASTE_CODEC = RecordCodecBuilder.create(builder -> | ||
builder.group( | ||
ResourceLocation.CODEC.fieldOf("name").forGetter(FoodTaste::key), | ||
Codec.BOOL.fieldOf("is_advanced").forGetter(FoodTaste::isAdvanced), | ||
Codec.INT.fieldOf("like_weight").forGetter(FoodTaste::likeWeight), | ||
Codec.INT.fieldOf("dislike_weight").forGetter(FoodTaste::dislikeWeight), | ||
TagKey.codec(Registries.ITEM).fieldOf("taste_key").forGetter(FoodTaste::tasteKey), | ||
TagKey.codec(Registries.ITEM).fieldOf("taste_key_primary").forGetter(FoodTaste::tasteKeyPrimary), | ||
TagKey.codec(Registries.ITEM).fieldOf("taste_key_secondary").forGetter(FoodTaste::tasteKeySecondary) | ||
).apply(builder, FoodTaste::new) | ||
); | ||
} |
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.