Jump to content

[1.7.2] Sound Tutorial - Found one you like?


delpi

Recommended Posts

Cool.  I'll follow that.  I've used build in sounds before, so should be simple.

 

In the tutorials I looked at they were based upon previous versions and several people had implimented sound handlers.  They didn't appear to be registering the handlers anywhere, so it looked just like simple classes.  Sometimes hard to tell when they are just describing the changes from 1.6.4 versus 1.7.2 and not how to actually go from scratch.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

In the tutorials I looked at they were based upon previous versions and several people had implimented sound handlers.

SoundHandlers are a thing of the past - they used to be used because sounds needed to be added to the sound pool during startup, but no longer. The SoundLoadedEvent really doesn't have a use anymore, as far as I can tell.

 

Personally, however, I still create a "Sounds" class filled with public static Strings for my sound file names, for ease of reference. Looks a bit like this:

public class Sounds {
// BLOCK SOUNDS
public static final String BREAK_JAR = ModInfo.ID + ":ceramic";
public static final String HIT_PEG = ModInfo.ID + ":hit_peg";
// etc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.