-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync 1.19.2
- Loading branch information
Showing
129 changed files
with
6,465 additions
and
758 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
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
distributionUrl=https://mirrors.cloud.tencent.com/gradle/gradle-7.5.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
45 changes: 45 additions & 0 deletions
45
src/generated/resources/data/touhou_little_maid/tags/items/maid_tamed_item.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,45 @@ | ||
{ | ||
"values": [ | ||
"minecraft:cake", | ||
{ | ||
"id": "#forge:cakes", | ||
"required": false | ||
}, | ||
{ | ||
"id": "#c:cakes", | ||
"required": false | ||
}, | ||
{ | ||
"id": "#jmc:cakes", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:cheese_cake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:honey_cheese_cake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:chocolate_cheese_cake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:piece_of_cake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:piece_of_cheesecake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:piece_of_chocolate_cheesecake", | ||
"required": false | ||
}, | ||
{ | ||
"id": "kawaiidishes:piece_of_honey_cheesecake", | ||
"required": false | ||
} | ||
] | ||
} |
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
85 changes: 85 additions & 0 deletions
85
src/main/java/com/github/tartaricacid/touhoulittlemaid/api/animation/ICustomAnimation.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,85 @@ | ||
package com.github.tartaricacid.touhoulittlemaid.api.animation; | ||
|
||
import com.github.tartaricacid.touhoulittlemaid.client.model.bedrock.BedrockPart; | ||
import com.github.tartaricacid.touhoulittlemaid.geckolib3.geo.animated.AnimatedGeoModel; | ||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import net.minecraft.world.entity.LivingEntity; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.HashMap; | ||
|
||
public interface ICustomAnimation<T extends LivingEntity> { | ||
/** | ||
* 一个工具类,用来获取指定名称的 BedrockPart | ||
* | ||
* @param models 所有的骨骼 | ||
* @param partName 指定名称的骨骼 | ||
* @return 如果找不到,那么返回 null | ||
*/ | ||
@Nullable | ||
static BedrockPart getPartOrNull(HashMap<String, ? extends IModelRenderer> models, String partName) { | ||
IModelRenderer renderer = models.get(partName); | ||
if (renderer == null) { | ||
return null; | ||
} | ||
return renderer.getModelRenderer(); | ||
} | ||
|
||
/** | ||
* 旧版模型 | ||
* 原版里,全局的旋转是单独独立出来一个方法,比后面的动画部分要早执行 | ||
* | ||
* @param entity 实体 | ||
* @param poseStack 矩阵,就是改变它来控制全局旋转 | ||
* @param ageInTicks 实体的 tick 时间,从 0 开始一直增大 | ||
* @param rotationYaw 实体的整体的 Y Rot,单位为角度 | ||
* @param partialTicks 插值 | ||
*/ | ||
default void setupRotations(T entity, PoseStack poseStack, float ageInTicks, float rotationYaw, float partialTicks) { | ||
} | ||
|
||
/** | ||
* GeckoLib 版模型 | ||
* 原版里,全局的旋转是单独独立出来一个方法,比后面的动画部分要早执行 | ||
* | ||
* @param entity 实体 | ||
* @param poseStack 矩阵,就是改变它来控制全局旋转 | ||
* @param ageInTicks 实体的 tick 时间,从 0 开始一直增大 | ||
* @param rotationYaw 实体的整体的 Y Rot,单位为角度 | ||
* @param partialTicks 插值 | ||
*/ | ||
default void setupGeckoRotations(T entity, PoseStack poseStack, float ageInTicks, float rotationYaw, float partialTicks) { | ||
} | ||
|
||
/** | ||
* 需要添加的动画(旧版模型) | ||
* | ||
* @param entity 实体 | ||
* @param models 所有的骨骼 | ||
* @param limbSwing 实体行走的里程,可以理解为汽车的里程表 | ||
* @param limbSwingAmount 实体行走的速度,可以理解为汽车的速度表 | ||
* @param ageInTicks 实体的 tick 时间,从 0 开始一直增大 | ||
* @param netHeadYaw 实体的头部 Y Rot,单位为角度 | ||
* @param headPitch 实体的头部 X Rot,单位为角度 | ||
*/ | ||
default void setRotationAngles(T entity, HashMap<String, ? extends IModelRenderer> models, | ||
float limbSwing, float limbSwingAmount, float ageInTicks, | ||
float netHeadYaw, float headPitch) { | ||
} | ||
|
||
/** | ||
* 需要添加的动画(GeckoLib 版模型) | ||
* | ||
* @param entity 实体 | ||
* @param model 所有的骨骼 | ||
* @param limbSwing 实体行走的里程,可以理解为汽车的里程表 | ||
* @param limbSwingAmount 实体行走的速度,可以理解为汽车的速度表 | ||
* @param ageInTicks 实体的 tick 时间,从 0 开始一直增大 | ||
* @param netHeadYaw 实体的头部 Y Rot,单位为角度 | ||
* @param headPitch 实体的头部 X Rot,单位为角度 | ||
*/ | ||
default void setGeckoRotationAngles(T entity, AnimatedGeoModel model, | ||
float limbSwing, float limbSwingAmount, float ageInTicks, | ||
float netHeadYaw, float headPitch) { | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/github/tartaricacid/touhoulittlemaid/api/animation/IModelRenderer.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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/github/tartaricacid/touhoulittlemaid/api/mixin/IPlayerMixin.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,5 @@ | ||
package com.github.tartaricacid.touhoulittlemaid.api.mixin; | ||
|
||
public interface IPlayerMixin { | ||
boolean tlmInRemoveVehicleCooldown(); | ||
} |
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.