use of party.lemons.biomemakeover.util.sound.StoneGolemTurnSoundInstance in project Biome-Makeover by Lemonszz.
the class StoneGolemEntity method playRotateSound.
@Environment(EnvType.CLIENT)
private void playRotateSound() {
boolean nulled = turnSound == null;
if (nulled || turnSound.isDone()) {
if (!nulled)
MinecraftClient.getInstance().getSoundManager().stop(turnSound);
turnSound = new StoneGolemTurnSoundInstance(this);
MinecraftClient.getInstance().getSoundManager().play(turnSound);
} else if (!nulled)
turnSound.tick();
}
Aggregations