|
|||||||||
| 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 | |
|---|---|
void |
AddEntityID()
Place holder for calling the function that adds entity IDs, which are used for SMP, MobSpawner, and saving. |
int |
AddFuel(int id)
Used for adding new sources of fuel to the furnace. |
void |
AddRecipes(en recipes)
Used to add recipes. |
void |
AddRenderer(java.util.Map<java.lang.Class<? extends lw>,aq> renderers)
Used to add entity renderers. |
int |
AddSmelting(int id)
Used for adding new options to the furnace for item creation. |
void |
GenerateNether(cy world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) in Nether. |
void |
GenerateSurface(cy world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) on the surface world. |
bp |
OpenModGUI(bq player,
java.lang.Object instance)
Opens GUI for use with mods. |
void |
OSDHook(net.minecraft.client.Minecraft game)
Used for displaying OSDs, called each frame |
void |
RegisterAnimation(net.minecraft.client.Minecraft game)
Used for registering animations for items and blocks. |
void |
RegisterBlocks(java.util.List<nq> registry)
Used to register blocks that the client can use. |
void |
RegisterTextureOverrides()
Used for registering textures to be overlaid over internal tex buffers |
void |
RegisterTileEntity()
Place holder for calling the function that adds TileEntities. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseMod()
| Method Detail |
|---|
public void AddEntityID()
ModLoader.AddAllEntityIDs()public int AddFuel(int id)
id - ItemID for the item to use as fuel.
ModLoader.AddAllFuel(int)public void AddRecipes(en recipes)
recipes - Recipe instance to add to.ModLoader.AddAllRecipes(en)public void AddRenderer(java.util.Map<java.lang.Class<? extends lw>,aq> renderers)
renderers - HashMap of the renderers. key is an entity class, value is the
renderer.ModLoader.AddAllRenderers(java.util.Map, aq>) public int AddSmelting(int id)
id - ItemID of the input item.
ModLoader.AddAllSmelting(int)
public void GenerateNether(cy 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(bd, int, int, cy)
public void GenerateSurface(cy 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(bd, int, int, cy)
public bp OpenModGUI(bq 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(bq, java.lang.Object)public void OSDHook(net.minecraft.client.Minecraft game)
game - Instance of the game classModLoader.RunOSDHooks(net.minecraft.client.Minecraft)public void RegisterBlocks(java.util.List<nq> registry)
registry - List of blocks to add to.ModLoader.RegisterAllBlocks(java.util.List) public void RegisterTextureOverrides()
ModLoader.RegisterAllTextureOverrides(fu),
ModLoader.addOverride(java.lang.String, java.lang.String, int)public void RegisterAnimation(net.minecraft.client.Minecraft game)
ModLoader.RegisterAllTextureOverrides(fu),
ModLoader.addAnimation(ad)public void RegisterTileEntity()
ModLoader.RegisterAllTileEntities()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||