package com.hbm.sound; import com.hbm.entity.EntityHunterChopper; import com.hbm.sound.MovingSoundPlayerLoop.EnumHbmSound; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class MovingSoundCrashing extends MovingSoundPlayerLoop { public MovingSoundCrashing(ResourceLocation p_i45104_1_, Entity player, EnumHbmSound type) { super(p_i45104_1_, player, type); } @Override public void update() { super.update(); if(player instanceof EntityHunterChopper && !((EntityHunterChopper)player).getIsDying()) this.stop(); } }