Guest User

ModSounds.java

a guest
Nov 1st, 2022
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package io.github.jdrmcm.lepton.sound;
  2.  
  3. import io.github.jdrmcm.lepton.Lepton;
  4. import net.minecraft.sound.SoundEvent;
  5. import net.minecraft.util.Identifier;
  6. import net.minecraft.util.registry.Registry;
  7.  
  8. public class ModSounds {
  9. public static final SoundEvent MAGIC_MIRROR_USE = register("magic_mirror_use");
  10.  
  11. private static SoundEvent register(String id) {
  12. return Registry.register(Registry.SOUND_EVENT, id, new SoundEvent(new Identifier(id)));
  13. }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment