|
|||||||||
| 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(eu recipes)
Used to add recipes. |
void |
AddRenderer(java.util.Map<java.lang.Class<? extends mn>,at> renderers)
Used to add entity renderers. |
int |
AddSmelting(int id)
Used for adding new options to the furnace for item creation. |
void |
GenerateNether(dd world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) in Nether. |
void |
GenerateSurface(dd world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) on the surface world. |
void |
ModsLoaded()
Called after all mods are loaded. |
br |
OpenModGUI(ei player,
java.lang.Object instance)
Opens GUI for use with mods. |
void |
OSDHook(net.minecraft.client.Minecraft game)
Deprecated. |
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()
Used for registering textures to be overlaid over internal tex buffers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMod()
| Method Detail |
|---|
public int AddFuel(int id)
id - ItemID for the item to use as fuel.
ModLoader.AddAllFuel(int)public void AddRecipes(eu recipes)
recipes - Recipe instance to add to.ModLoader.AddAllRecipes(eu)public void AddRenderer(java.util.Map<java.lang.Class<? extends mn>,at> renderers)
renderers - HashMap of the renderers. key is an entity class, value is the
renderer.ModLoader.AddAllRenderers(java.util.Map, at>) public int AddSmelting(int id)
id - ItemID of the input item.
ModLoader.AddAllSmelting(int)
public void GenerateNether(dd 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(bf, int, int, dd)
public void GenerateSurface(dd 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(bf, int, int, dd)
public br OpenModGUI(ei 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(ei, java.lang.Object)@Deprecated public void OSDHook(net.minecraft.client.Minecraft game)
game - Instance of the game classModLoader.RunOSDHooks(net.minecraft.client.Minecraft)
public void OSDHook(net.minecraft.client.Minecraft game,
boolean ingui)
game - Instance of the game class.ingui - whether a gui is opened.public void RegisterTextureOverrides()
ModLoader.RegisterAllTextureOverrides(ge),
ModLoader.addOverride(java.lang.String, java.lang.String, int)public void RegisterAnimation(net.minecraft.client.Minecraft game)
ModLoader.RegisterAllTextureOverrides(ge),
ModLoader.addAnimation(ae)public void ModsLoaded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||