|
|||||||||
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 |
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()
public int AddFuel(int id)
id
- ItemID for the item to use as fuel.
public void AddRecipes(en recipes)
recipes
- Recipe instance to add to.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.public int AddSmelting(int id)
id
- ItemID of the input item.
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.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.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.
public void OSDHook(net.minecraft.client.Minecraft game)
game
- Instance of the game classpublic void RegisterBlocks(java.util.List<nq> registry)
registry
- List of blocks to add to.public void RegisterTextureOverrides()
public void RegisterTileEntity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |