|
|||||||||
| 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,
int metadata)
Used for adding new sources of fuel to the furnace. |
void |
AddRenderer(java.util.Map<java.lang.Class<? extends kj>,px> renderers)
Used to add entity renderers. |
boolean |
DispenseEntity(rv world,
double x,
double y,
double z,
int xVel,
int zVel,
ul item)
Dispenses the entity associated with the selected item. |
void |
GenerateNether(rv world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) in Nether. |
void |
GenerateSurface(rv world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) on the surface world. |
void |
KeyboardEvent(ys event)
This method will be called when the register key has been pressed, or held down. |
void |
ModsLoaded()
Called after all mods are loaded. |
void |
OnItemPickup(sz player,
ul item)
Is called when an item is picked up from the world. |
boolean |
OnTickInGame(float tick,
net.minecraft.client.Minecraft game)
Called when enabled, and in game. |
boolean |
OnTickInGame(net.minecraft.client.Minecraft game)
Deprecated. |
boolean |
OnTickInGUI(float tick,
net.minecraft.client.Minecraft game,
qr gui)
Called when enabled, and a GUI is open. |
boolean |
OnTickInGUI(net.minecraft.client.Minecraft game,
qr gui)
Deprecated. |
void |
RegisterAnimation(net.minecraft.client.Minecraft game)
Used for registering animations for items and blocks. |
void |
RenderInvBlock(qo renderer,
lr block,
int metadata,
int modelID)
Renders a block in inventory. |
boolean |
RenderWorldBlock(qo renderer,
adg world,
int x,
int y,
int z,
lr block,
int modelID)
Renders a block in the world. |
void |
TakenFromCrafting(sz player,
ul item,
gl matrix)
Is called when an item is picked up from crafting result slot. |
void |
TakenFromFurnace(sz player,
ul item)
Is called when an item is picked up from furnace result slot. |
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 int AddFuel(int id,
int metadata)
id - ItemID for the item to use as fuel.metadata -
ModLoader.AddAllFuel(int, int)public void AddRenderer(java.util.Map<java.lang.Class<? extends kj>,px> renderers)
renderers - HashMap of the renderers. key is an entity class, value is
the renderer.ModLoader.AddAllRenderers(java.util.Map, px>)
public boolean DispenseEntity(rv world,
double x,
double y,
double z,
int xVel,
int zVel,
ul item)
world - reference to the World.x - X coordinate.y - Y coordinate.z - Z coordinate.xVel - X velocity.zVel - Z velocity.item - ID of item to chosen to dispense entity.
ModLoader.DispenseEntity(rv, double, double, double, int, int, ul)
public void GenerateNether(rv 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, rv)
public void GenerateSurface(rv 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, rv)public abstract java.lang.String Version()
public void KeyboardEvent(ys event)
event - Reference to the key pressed.ModLoader.RegisterKey(BaseMod, ys, boolean)public void ModsLoaded()
public void OnItemPickup(sz player,
ul item)
player - that picked up itemitem - that was picked up
public boolean OnTickInGame(float tick,
net.minecraft.client.Minecraft game)
tick - Partial tick. Used for smooth animation.game - Instance of the Minecraft class.
@Deprecated public boolean OnTickInGame(net.minecraft.client.Minecraft game)
public boolean OnTickInGUI(float tick,
net.minecraft.client.Minecraft game,
qr gui)
tick - Partial tick. Used for smooth animation.game - Instance of the Minecraft class.gui - Current GUI that is open.
@Deprecated
public boolean OnTickInGUI(net.minecraft.client.Minecraft game,
qr gui)
public void RegisterAnimation(net.minecraft.client.Minecraft game)
game - Instance of the Minecraft class.ModLoader.RegisterAllTextureOverrides(ur),
ModLoader.addAnimation(pg)
public void RenderInvBlock(qo renderer,
lr block,
int metadata,
int modelID)
renderer - parent renderer. Methods and fields may be referenced from
here.block - reference to block to render.metadata - of block. Damage on an item.modelID - ID of block model to render.
public boolean RenderWorldBlock(qo renderer,
adg world,
int x,
int y,
int z,
lr block,
int modelID)
renderer - parent renderer. Methods and fields may be referenced from
here.world - to render block in.x - XPosy - YPosz - ZPosblock - reference to block to render.modelID - ID of block model to render.
public void TakenFromCrafting(sz player,
ul item,
gl matrix)
player - that picked up itemitem - that was picked upmatrix - crafting matrix that is used
public void TakenFromFurnace(sz player,
ul item)
player - that picked up itemitem - that was picked uppublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||