Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void playFireSound() {
- playSound("gun.shotgun.fire");
- }
- public void playReloadSound() {
- playSound("gun.shotgun.reload");
- }
- /**
- * Play sound
- * @param name The name of the sound (not the path to the sound)
- */
- public void playSound(final String name) {
- Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation(Reference.MOD_ID, name), 1.0F));
- }
Add Comment
Please, Sign In to add comment