YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.client.ModCompatibilityClient Class Reference

Static Public Member Functions

static void audioModLoad (SoundManager mngr)
 
static void audioModAddCodecs ()
 
static SoundPoolEntry audioModPickBackgroundMusic (SoundManager soundManager, SoundPoolEntry current)
 
static boolean isMLMPInstalled ()
 
static Object mlmpVehicleSpawn (int type, World world, double x, double y, double z, Entity thrower, Object currentEntity) throws Exception
 
static void mlmpOpenWindow (Packet100OpenWindow pkt)
 

Static Public Attributes

static SoundPool audioModSoundPoolCave
 

Member Function Documentation

static void net.minecraftforge.client.ModCompatibilityClient.audioModAddCodecs ( )
static

Adds the IBXM codec and associates it with .xm, .s3m, and .mod

static void net.minecraftforge.client.ModCompatibilityClient.audioModLoad ( SoundManager  mngr)
static

Populates the sound pools with with sounds from the /resources/mods folder And sets the interval between background music to 6000

Parameters
mngrThe SoundManager instance
static SoundPoolEntry net.minecraftforge.client.ModCompatibilityClient.audioModPickBackgroundMusic ( SoundManager  soundManager,
SoundPoolEntry  current 
)
static

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.

Parameters
soundManagerThe SoundManager instance
currentThe currently selected entry
Returns
A soundPool entry to be played as the background music
static boolean net.minecraftforge.client.ModCompatibilityClient.isMLMPInstalled ( )
static

Determine if ModLoaderMP is installed by checking for the existence of the BaseModMp class.

Returns
True if BaseModMp was installed (indicating the existance of MLMP)
static void net.minecraftforge.client.ModCompatibilityClient.mlmpOpenWindow ( Packet100OpenWindow  pkt)
static

Attempts to invoke ModLoaderMp.handleGUI if ModLoaderMP is installed. If not, it does nothing

Parameters
pktThe open window packet
static Object net.minecraftforge.client.ModCompatibilityClient.mlmpVehicleSpawn ( int  type,
World  world,
double  x,
double  y,
double  z,
Entity  thrower,
Object  currentEntity 
) throws Exception
static

Attempts to spawn a vehicle using ModLoaderMP's vehicle spawn registry, if MLMP is not installed it returns the passed in currentEntity

Parameters
typeThe Type ID of the vehicle
worldThe current world
xThe spawn X position
yThe spawn Y position
zThe spawn Z position
throwerThe entity that spawned the vehicle {possibly null}
currentEntityThe current value to return if MLMP is not installed
Returns
The new spawned entity
Exceptions
Exception

Member Data Documentation

SoundPool net.minecraftforge.client.ModCompatibilityClient.audioModSoundPoolCave
static

The documentation for this class was generated from the following file: