public class ModCompatibilityClient extends Object
| Modifier and Type | Field and Description | 
|---|---|
static SoundPool | 
audioModSoundPoolCave
Risugami's AudioMod Compatibility
 http://www.minecraftforum.net/topic/75440-
 AudioMod adds a few extra codecs, loads audio from /resources/mods/*,
 introduces the concept of 'cave' sounds, which are determined by if
 the player is underneath a solid block. 
 | 
| Constructor and Description | 
|---|
ModCompatibilityClient()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
audioModAddCodecs()
Adds the IBXM codec and associates it with .xm, .s3m, and .mod 
 | 
static void | 
audioModLoad(SoundManager mngr)
Populates the sound pools with with sounds from the /resources/mods folder
 And sets the interval between background music to 6000 
 | 
static SoundPoolEntry | 
audioModPickBackgroundMusic(SoundManager soundManager,
                                                      SoundPoolEntry current)
If the current player is underground, it picks a random song from the cave sound pool,
 if they are not it returns the passed in entry. 
 | 
static boolean | 
isMLMPInstalled()
Determine if ModLoaderMP is installed by checking for the existence of the BaseModMp class. 
 | 
static void | 
mlmpOpenWindow(Packet100OpenWindow pkt)
Attempts to invoke ModLoaderMp.handleGUI if ModLoaderMP is installed. 
 | 
static Object | 
mlmpVehicleSpawn(int type,
                                World world,
                                double x,
                                double y,
                                double z,
                                Entity thrower,
                                Object currentEntity)
Attempts to spawn a vehicle using ModLoaderMP's vehicle spawn registry, if MLMP is not installed
 it returns the passed in currentEntity 
 | 
public static SoundPool audioModSoundPoolCave
public ModCompatibilityClient()
public static void audioModLoad(SoundManager mngr)
mngr - The SoundManager instancepublic static void audioModAddCodecs()
public static SoundPoolEntry audioModPickBackgroundMusic(SoundManager soundManager, SoundPoolEntry current)
soundManager - The SoundManager instancecurrent - The currently selected entrypublic static boolean isMLMPInstalled()
public static Object mlmpVehicleSpawn(int type, World world, double x, double y, double z, Entity thrower, Object currentEntity) throws Exception
type - The Type ID of the vehicleworld - The current worldx - The spawn X positiony - The spawn Y positionz - The spawn Z positionthrower - The entity that spawned the vehicle {possibly null}currentEntity - The current value to return if MLMP is not installedExceptionpublic static void mlmpOpenWindow(Packet100OpenWindow pkt)
pkt - The open window packet