Some improvements to things

This commit is contained in:
modmuss50 2016-03-20 21:23:12 +00:00
parent fee31761b1
commit 5fde39ebcd
5 changed files with 74 additions and 13 deletions

View file

@ -0,0 +1,24 @@
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;
}
}