|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBaseMod
public abstract class BaseMod
Inherit this class in new mods for it to be used by ModLoader.
| Constructor Summary | |
|---|---|
BaseMod()
|
|
| Method Summary | |
|---|---|
int |
AddFuel(int id)
Used for adding new sources of fuel to the furnace. |
void |
AddRecipes(fg recipes)
Used to add recipes. |
void |
AddRenderer(java.util.Map<java.lang.Class<? extends nl>,ba> renderers)
Used to add entity renderers. |
nl |
DispenseEntity(dn world,
double x,
double y,
double z,
float xVel,
float zVel,
int itemid)
Dispenses the entity associated with the selected item. |
void |
GenerateNether(dn world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) in Nether. |
void |
GenerateSurface(dn world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) on the surface world. |
void |
KeyboardEvent(lo event)
This method will be called when the register key has been pressed, or held down. |
void |
ModsLoaded()
Called after all mods are loaded. |
by |
OpenModGUI(eu player,
java.lang.Object instance)
Opens GUI for use with mods. |
void |
OSDHook(net.minecraft.client.Minecraft game,
boolean ingui)
Used for displaying OSDs, called each frame. |
void |
RegisterAnimation(net.minecraft.client.Minecraft game)
Used for registering animations for items and blocks. |
void |
RegisterTextureOverrides()
Deprecated. |
java.lang.String |
toString()
|
abstract java.lang.String |
Version()
Required override that informs users the version of this mod. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMod()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract java.lang.String Version()
public int AddFuel(int id)
id - ItemID for the item to use as fuel.
ModLoader.AddAllFuel(int)public void AddRecipes(fg recipes)
recipes - Recipe instance to add to.ModLoader.AddAllRecipes(fg)
public nl DispenseEntity(dn world,
double x,
double y,
double z,
float xVel,
float zVel,
int itemid)
world - reference to the World.x - X coordinate.y - Y coordinate.z - Z coordinate.xVel - X velocity.zVel - Z velocity.itemid - ID of item to chosen to dispense entity.
ModLoader.DispenseEntity(dn, double, double, double, float, float, int)public void AddRenderer(java.util.Map<java.lang.Class<? extends nl>,ba> renderers)
renderers - HashMap of the renderers. key is an entity class, value is
the renderer.ModLoader.AddAllRenderers(java.util.Map, ba>)
public void GenerateNether(dn world,
java.util.Random random,
int chunkX,
int chunkZ)
world - Reference to world.random - Instance of random to use.chunkX - X coordinate of chunk.chunkZ - Z coordinate of chunk.ModLoader.PopulateChunk(bm, int, int, dn)
public void GenerateSurface(dn world,
java.util.Random random,
int chunkX,
int chunkZ)
world - Reference to world.random - Instance of random to use.chunkX - X coordinate of chunk.chunkZ - Z coordinate of chunk.ModLoader.PopulateChunk(bm, int, int, dn)
public by OpenModGUI(eu player,
java.lang.Object instance)
player - Player instance to open GUI for.instance - Used for identifying which mod this call is for. Allows for
passing extra data to GUI.
ModLoader.OpenModGUI(eu, java.lang.Object)
public void OSDHook(net.minecraft.client.Minecraft game,
boolean ingui)
game - Instance of the Minecraft class.ingui - whether a gui is opened.@Deprecated public void RegisterTextureOverrides()
ModLoader.RegisterAllTextureOverrides(gs),
ModLoader.addOverride(java.lang.String, java.lang.String, int)public void RegisterAnimation(net.minecraft.client.Minecraft game)
game - Instance of the Minecraft class.ModLoader.RegisterAllTextureOverrides(gs),
ModLoader.addAnimation(ah)public void KeyboardEvent(lo event)
event - Reference to the key pressed.public void ModsLoaded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||