New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine useAnimations feature #207
Refine useAnimations feature #207
Conversation
Bobbing animation with S2C network interaction. * unregister mixin - `mixin.common.features.useAnimations.ItemStackMixin` * new files - `client.features.useAnimatins.AnimationsHelper` - `mixin.client.features.useAnimations.ClientPlayerEntityMixin` - `mixin.client.features.useAnimations.ClientPlayerInteractionManagerMixin` - `mixin.client.features.useAnimations.ClientPlayNetworkHandlerMixin`
* update `AnimationsHelper.java` - new constant `COOLDOWN_TIME_MILLIS` based on Minecraft tick millis - new fields `lastBobbingStack` and `lastBobbingTime` - check the animated stack and the currentTimeMillis * new files - `mixin.client.features.useAnimations.MinecraftClientAccessor` - `mixin.client.features.useAnimations.RenderTickCounterAccessor` * some minor fixes
* not only for BoneMeal
* constant has changed - `COOLDOWN_TIME_MILLIS` is now half of `ANIMATION_TIME` * tickTimeMillis
* boolean `pickupAnimations` has moved - BedrockifySettings#pickupAnimations -> BedrockifyClientSettings#pickupAnimations
src/main/java/me/juancarloscp52/bedrockify/client/features/useAnimations/AnimationsHelper.java
Outdated
Show resolved
Hide resolved
This reverts commit 88f4949.
I will end my commit with this comment for now. Works fine for me (and I enjoying on my server), but there are still issues:
Sorry for the many commits. If I should squash these, it doesn’t matter to combine them into a reasonable amount of granularity. But please note, it needs to FORCE push with Please let me know if you have any further suggestions. |
Hey! Sorry for the late response. I'll be testing this implementation and its differences with the previous one this week |
Thank you! Whenever you’re ready. |
Looks good! I think that the remaining issues are not as noticeable, and is a comprehensible compromise for having item animations client-side. Thank you. |
close #206
Bobbing animation with S2C network interaction.
It also works when played on a vanilla server.
Known issues
Non-mining tools such as “Flint and Steel” are always animated when destroying a block using it.Solved.
Using Bone Meal will cause double-bobbing due toClientPlayerInteractionManager#interactItem
returnsActionResult.SUCCESS
and decreasing in stack.edit: Solved in commit: c2395f6 and da10b9d.
LivingEntity
and handle it inClientPlayerEntity
, but this solution doesn’t work on a vanilla server. Also, there may be a conflict in the magic number of the statuses in a future update.