TechReborn/src/main/java/techreborn/init/ModSounds.java
2016-03-24 00:39:26 +00:00

25 lines
467 B
Java

package techreborn.init;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
/**
* Created by Mark on 20/03/2016.
*/
public class ModSounds
{
public static SoundEvent shock;
public static void init()
{
shock = getSound("cable_shock");
}
private static SoundEvent getSound(String str)
{
SoundEvent soundEvent = SoundEvent.soundEventRegistry.getObject(new ResourceLocation("techreborn" + str));
return soundEvent;
}
}