2016-05-16 22:52:27 +02:00
|
|
|
/*
|
|
|
|
* This file ("SoundHandler.java") is part of the Actually Additions mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2017-01-01 16:23:26 +01:00
|
|
|
* © 2015-2017 Ellpeck
|
2016-05-16 22:52:27 +02:00
|
|
|
*/
|
|
|
|
|
2016-12-06 18:10:43 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.misc;
|
2016-05-01 22:26:26 +02:00
|
|
|
|
2018-05-10 11:38:58 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
2017-06-29 13:00:11 +02:00
|
|
|
import de.ellpeck.actuallyadditions.mod.RegistryHandler;
|
2016-05-01 22:26:26 +02:00
|
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import net.minecraft.util.SoundEvent;
|
|
|
|
|
2016-06-17 23:50:38 +02:00
|
|
|
public final class SoundHandler{
|
2016-05-01 22:26:26 +02:00
|
|
|
|
|
|
|
public static SoundEvent duhDuhDuhDuuuh;
|
|
|
|
public static SoundEvent coffeeMachine;
|
|
|
|
public static SoundEvent reconstructor;
|
|
|
|
public static SoundEvent crusher;
|
|
|
|
|
|
|
|
public static void init(){
|
2016-11-19 23:12:22 +01:00
|
|
|
duhDuhDuhDuuuh = registerSound("duh_duh_duh_duuuh");
|
|
|
|
coffeeMachine = registerSound("coffee_machine");
|
2016-05-01 22:26:26 +02:00
|
|
|
reconstructor = registerSound("reconstructor");
|
|
|
|
crusher = registerSound("crusher");
|
|
|
|
}
|
|
|
|
|
|
|
|
private static SoundEvent registerSound(String name){
|
2018-05-10 11:38:58 +02:00
|
|
|
ResourceLocation resLoc = new ResourceLocation(ActuallyAdditions.MODID, name);
|
2016-05-01 22:26:26 +02:00
|
|
|
|
|
|
|
SoundEvent event = new SoundEvent(resLoc);
|
2017-06-29 13:00:11 +02:00
|
|
|
event.setRegistryName(resLoc);
|
|
|
|
RegistryHandler.SOUNDS_TO_REGISTER.add(event);
|
2016-05-01 22:26:26 +02:00
|
|
|
return event;
|
|
|
|
}
|
|
|
|
}
|