Class BaseMod

java.lang.Object
  extended by BaseMod
Direct Known Subclasses:
mod_Arrows, mod_Floodgate, mod_LightSensor, mod_SpawnerGUI, mod_Stackables

public abstract class BaseMod
extends java.lang.Object

Inherit this class in new mods for it to be used by ModLoader.

Version:
Beta 1.1_02

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

BaseMod

public BaseMod()
Method Detail

AddFuel

public int AddFuel(int id)
Used for adding new sources of fuel to the furnace.

Parameters:
id - ItemID for the item to use as fuel.
Returns:
Duration of fuel provided.
See Also:
ModLoader.AddAllFuel(int)

AddRecipes

public void AddRecipes(eu recipes)
Used to add recipes.

Parameters:
recipes - Recipe instance to add to.
See Also:
ModLoader.AddAllRecipes(eu)

AddRenderer

public void AddRenderer(java.util.Map<java.lang.Class<? extends mn>,at> renderers)
Used to add entity renderers.

Parameters:
renderers - HashMap of the renderers. key is an entity class, value is the renderer.
See Also:
ModLoader.AddAllRenderers(java.util.Map, at>)

AddSmelting

public int AddSmelting(int id)
Used for adding new options to the furnace for item creation.

Parameters:
id - ItemID of the input item.
Returns:
ItemID of the output item.
See Also:
ModLoader.AddAllSmelting(int)

GenerateNether

public void GenerateNether(dd world,
                           java.util.Random random,
                           int chunkX,
                           int chunkZ)
Used for generating new blocks (veins) in Nether.

Parameters:
world - Reference to world.
random - Instance of random to use.
chunkX - X coordinate of chunk.
chunkZ - Z coordinate of chunk.
See Also:
ModLoader.PopulateChunk(bf, int, int, dd)

GenerateSurface

public void GenerateSurface(dd world,
                            java.util.Random random,
                            int chunkX,
                            int chunkZ)
Used for generating new blocks (veins) on the surface world.

Parameters:
world - Reference to world.
random - Instance of random to use.
chunkX - X coordinate of chunk.
chunkZ - Z coordinate of chunk.
See Also:
ModLoader.PopulateChunk(bf, int, int, dd)

OpenModGUI

public br OpenModGUI(ei player,
                     java.lang.Object instance)
Opens GUI for use with mods.

Parameters:
player - Player instance to open GUI for.
instance - Used for identifying which mod this call is for. Allows for passing extra data to GUI.
Returns:
GUI that mod created.
See Also:
ModLoader.OpenModGUI(ei, java.lang.Object)

OSDHook

@Deprecated
public void OSDHook(net.minecraft.client.Minecraft game)
Deprecated. 

Used for displaying OSDs, called each frame

Parameters:
game - Instance of the game class
See Also:
ModLoader.RunOSDHooks(net.minecraft.client.Minecraft)

OSDHook

public void OSDHook(net.minecraft.client.Minecraft game,
                    boolean ingui)
Used for displaying OSDs, called each frame.

Parameters:
game - Instance of the game class.
ingui - whether a gui is opened.

RegisterTextureOverrides

public void RegisterTextureOverrides()
Used for registering textures to be overlaid over internal tex buffers

See Also:
ModLoader.RegisterAllTextureOverrides(ge), ModLoader.addOverride(java.lang.String, java.lang.String, int)

RegisterAnimation

public void RegisterAnimation(net.minecraft.client.Minecraft game)
Used for registering animations for items and blocks.

See Also:
ModLoader.RegisterAllTextureOverrides(ge), ModLoader.addAnimation(ae)

ModsLoaded

public void ModsLoaded()
Called after all mods are loaded.