mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Hook up a stomping animation
This commit is contained in:
parent
9fc4c384cb
commit
e805354043
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
import com.minelittlepony.unicopia.BlockDestructionManager;
|
||||
import com.minelittlepony.unicopia.Race;
|
||||
import com.minelittlepony.unicopia.ability.data.Hit;
|
||||
import com.minelittlepony.unicopia.client.render.PlayerPoser.Animation;
|
||||
import com.minelittlepony.unicopia.entity.player.Pony;
|
||||
import com.minelittlepony.unicopia.item.UItems;
|
||||
import com.minelittlepony.unicopia.item.enchantment.UEnchantments;
|
||||
|
@ -90,6 +91,8 @@ public class EarthPonyStompAbility implements Ability<Hit> {
|
|||
public void apply(Pony iplayer, Hit data) {
|
||||
PlayerEntity player = iplayer.getMaster();
|
||||
|
||||
iplayer.setAnimation(Animation.STOMP, 10);
|
||||
|
||||
thrustDownwards(iplayer);
|
||||
|
||||
iplayer.waitForFall(() -> {
|
||||
|
|
Loading…
Reference in a new issue