mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
<200 errors. All I have left is a bit of rendering work and the new "off hand" stuff
This commit is contained in:
1 parent
c73eef6be8
commit
a89b8f666c
152 files changed
+754
-439
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package mekanism.common;
|
||||
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.SoundEvent;
|
||||
|
||||
public final class MekanismSounds
|
||||
{
|
||||
public static final SoundEvent CJ_EASTER_EGG = getRegisteredSoundEvent("mekanism:etc.cj");
|
||||
public static final SoundEvent POP = getRegisteredSoundEvent("mekanism:etc.Pop");
|
||||
public static final SoundEvent DING = getRegisteredSoundEvent("mekanism:etc.Ding");
|
||||
public static final SoundEvent HYDRAULIC = getRegisteredSoundEvent("mekanism:etc.Hydraulic");
|
||||
|
||||
private static SoundEvent getRegisteredSoundEvent(String id)
|
||||
{
|
||||
SoundEvent soundevent = (SoundEvent)SoundEvent.REGISTRY.getObject(new ResourceLocation(id));
|
||||
|
||||
if(soundevent == null)
|
||||
{
|
||||
throw new IllegalStateException("Invalid Sound requested: " + id);
|
||||
}
|
||||
else {
|
||||
return soundevent;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user