ModSounds refactored to follow items, blocks and fluids
This commit is contained in:
parent
316def3086
commit
f06e1a8673
4 changed files with 24 additions and 30 deletions
|
@ -26,7 +26,9 @@ package techreborn.utils;
|
|||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import reborncore.RebornRegistry;
|
||||
import techreborn.TechReborn;
|
||||
|
||||
|
@ -40,4 +42,9 @@ public class InitUtils {
|
|||
RebornRegistry.registerIdent(block, new Identifier(TechReborn.MOD_ID, name));
|
||||
return block;
|
||||
}
|
||||
|
||||
public static SoundEvent setup(String name) {
|
||||
Identifier identifier = new Identifier(TechReborn.MOD_ID, name);
|
||||
return Registry.register(Registry.SOUND_EVENT, identifier, new SoundEvent(identifier));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue