Hbm-s-Nuclear-Tech-GIT/com/hbm/sound/MovingSoundCrashing.java
2017-07-23 12:10:52 +02:00

21 lines
540 B
Java

package com.hbm.sound;
import com.hbm.entity.mob.EntityHunterChopper;
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();
}
}