Search in sources :

Example 1 with StoneGolemTurnSoundInstance

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();
}
Also used : StoneGolemTurnSoundInstance(party.lemons.biomemakeover.util.sound.StoneGolemTurnSoundInstance) Environment(net.fabricmc.api.Environment)

Aggregations

Environment (net.fabricmc.api.Environment)1 StoneGolemTurnSoundInstance (party.lemons.biomemakeover.util.sound.StoneGolemTurnSoundInstance)1