TechReborn/src/main/java/techreborn/init/ModSounds.java

25 lines
539 B
Java
Raw Normal View History

2016-03-20 22:23:12 +01:00
package techreborn.init;
import net.minecraft.client.audio.Sound;
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;
}
}