<200 errors. All I have left is a bit of rendering work and the new "off hand" stuff

This commit is contained in:
aidancbrady committed 2016-05-25 17:30:22 -04:00
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;
}
}
}