Some improvements to things
This commit is contained in:
parent
fee31761b1
commit
5fde39ebcd
5 changed files with 74 additions and 13 deletions
24
src/main/java/techreborn/init/ModSounds.java
Normal file
24
src/main/java/techreborn/init/ModSounds.java
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue