|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraftforge.client.ModCompatibilityClient
public class ModCompatibilityClient
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
ModCompatibilityClient()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static SoundPool audioModSoundPoolCave
| Constructor Detail |
|---|
public ModCompatibilityClient()
| Method Detail |
|---|
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 entry
public 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 installed
Exceptionpublic static void mlmpOpenWindow(Packet100OpenWindow pkt)
pkt - The open window packet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||