Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on improving systems for use on multiplayer servers
- Improved sprint jumping - Reverted second layer parenting to old system - Removed flying animation for the sake of server smoothness - Added water wading animation when underwater but not "swimming" - Removed ground impact kneel animation for the sake of server smoothness- this will be re-added later in a different context - Updated to test8
- Loading branch information
1 parent
0bc0631
commit 440b036
Showing
5 changed files
with
77 additions
and
60 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
25 changes: 25 additions & 0 deletions
25
src/main/java/com/trainguy/animationoverhaul/mixin/MixinPiglinModel.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,25 @@ | ||
package com.trainguy.animationoverhaul.mixin; | ||
|
||
import net.minecraft.client.model.HumanoidModel; | ||
import net.minecraft.client.model.PiglinModel; | ||
import net.minecraft.client.model.PlayerModel; | ||
import net.minecraft.client.model.geom.ModelPart; | ||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.entity.Mob; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(PiglinModel.class) | ||
public class MixinPiglinModel<T extends Mob> extends PlayerModel<T> { | ||
public MixinPiglinModel(ModelPart modelPart, boolean bl) { | ||
super(modelPart, bl); | ||
} | ||
|
||
@Inject(method = "setupAnim", at = @At("HEAD"), cancellable = true) | ||
private void animPiglinModel(T mob, float f, float g, float h, float i, float j, CallbackInfo ci){ | ||
super.setupAnim(mob, f, g, h, i, j); | ||
ci.cancel(); | ||
} | ||
} |
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