Firefly sounds
This commit is contained in:
parent
70e9813002
commit
be7fdf20e6
8 changed files with 44 additions and 16 deletions
|
@ -4,25 +4,22 @@ import net.minecraft.sound.SoundEvent;
|
|||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
|
||||
public class SoundsRegistry
|
||||
public class SoundRegistry
|
||||
{
|
||||
// Music
|
||||
public static final SoundEvent MUSIC_FOGGY_MUSHROOMLAND = registerMusic("foggy_mushroomland");
|
||||
public static final SoundEvent MUSIC_FOGGY_MUSHROOMLAND = register("music", "foggy_mushroomland");
|
||||
|
||||
// Ambient
|
||||
public static final SoundEvent AMBIENT_FOGGY_MUSHROOMLAND = registerAmbient("foggy_mushroomland");
|
||||
public static final SoundEvent AMBIENT_FOGGY_MUSHROOMLAND = register("ambient", "foggy_mushroomland");
|
||||
|
||||
// Entity
|
||||
public static final SoundEvent ENTITY_DRAGONFLY = register("entity", "dragonfly");
|
||||
|
||||
public static void register() {}
|
||||
|
||||
private static SoundEvent registerMusic(String id)
|
||||
private static SoundEvent register(String type, String id)
|
||||
{
|
||||
id = "betterend.music." + id;
|
||||
return Registry.register(Registry.SOUND_EVENT, id, new SoundEvent(BetterEnd.makeID(id)));
|
||||
}
|
||||
|
||||
private static SoundEvent registerAmbient(String id)
|
||||
{
|
||||
id = "betterend.ambient." + id;
|
||||
id = "betterend." + type + "." + id;
|
||||
return Registry.register(Registry.SOUND_EVENT, id, new SoundEvent(BetterEnd.makeID(id)));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue