Unicopia/src/main/java/com/minelittlepony/unicopia/USounds.java

30 lines
969 B
Java
Raw Normal View History

package com.minelittlepony.unicopia;
2020-01-16 12:35:46 +01:00
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
2020-04-15 12:37:14 +02:00
public interface USounds {
2020-01-16 12:35:46 +01:00
2020-04-15 12:37:14 +02:00
SoundEvent WING_FLAP = register("wing_flap");
SoundEvent WIND_RUSH = register("wind_rush");
2020-01-16 12:35:46 +01:00
2020-04-15 12:37:14 +02:00
SoundEvent INSECT = register("insect");
SoundEvent CHANGELING_BUZZ = register("changeling_buzz");
2020-01-16 12:35:46 +01:00
2020-04-15 12:37:14 +02:00
SoundEvent SLIME_ADVANCE = register("slime_advance");
SoundEvent SLIME_RETRACT = register("slime_retract");
2020-01-16 12:35:46 +01:00
2020-04-15 12:37:14 +02:00
SoundEvent RECORD_CRUSADE = register("record.crusade");
SoundEvent RECORD_PET = register("record.pet");
SoundEvent RECORD_POPULAR = register("record.popular");
SoundEvent RECORD_FUNK = register("record.funk");
2020-01-16 12:35:46 +01:00
2020-04-15 12:37:14 +02:00
static SoundEvent register(String name) {
2020-04-16 00:44:58 +02:00
Identifier id = new Identifier(Unicopia.MODID, name);
2020-01-16 12:35:46 +01:00
return Registry.register(Registry.SOUND_EVENT, id, new SoundEvent(id));
}
static void bootstrap() {}
}