|
|||||||||
| 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 nn>,um> renderers)
Used to add entity renderers. |
boolean |
dispenseEntity(xd world,
double x,
double y,
double z,
int xVel,
int zVel,
aan item)
Dispenses the entity associated with the selected item. |
void |
generateNether(xd world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) in Nether. |
void |
generateSurface(xd world,
java.util.Random random,
int chunkX,
int chunkZ)
Used for generating new blocks (veins) on the surface world. |
java.lang.String |
getName()
Descriptive name for this class. |
java.lang.String |
getPriorities()
This method will tell ModLoader what must come before or after a mod. |
abstract java.lang.String |
getVersion()
Required override that informs users the version of this mod. |
void |
keyboardEvent(afu event)
This method will be called when the register key has been pressed, or held down. |
abstract void |
load()
Required override. |
void |
modsLoaded()
Called after all mods are loaded. |
void |
onItemPickup(yw player,
aan 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 |
onTickInGUI(float tick,
net.minecraft.client.Minecraft game,
vp gui)
Called when enabled, and a GUI is open. |
void |
receiveChatPacket(java.lang.String text)
|
void |
receiveCustomPacket(ee packet)
|
void |
registerAnimation(net.minecraft.client.Minecraft game)
Used for registering animations for items and blocks. |
void |
renderInvBlock(vl renderer,
pb block,
int metadata,
int modelID)
Renders a block in inventory. |
boolean |
renderWorldBlock(vl renderer,
ali world,
int x,
int y,
int z,
pb block,
int modelID)
Renders a block in the world. |
void |
takenFromCrafting(yw player,
aan item,
io matrix)
Is called when an item is picked up from crafting result slot. |
void |
takenFromFurnace(yw player,
aan item)
Is called when an item is picked up from furnace result slot. |
java.lang.String |
toString()
|
| 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 nn>,um> renderers)
renderers - HashMap of the renderers. key is an entity class, value is
the renderer.ModLoader.addAllRenderers(java.util.Map, um>)
public boolean dispenseEntity(xd world,
double x,
double y,
double z,
int xVel,
int zVel,
aan 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(xd, double, double, double, int, int, aan)
public void generateNether(xd 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(ca, int, int, xd)
public void generateSurface(xd 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(ca, int, int, xd)public java.lang.String getName()
public java.lang.String getPriorities()
| require-before:* | Require that this mod come before all other mods. |
| require-after:* | Require that this mod come after all other mods. |
| before:* | Says that this mod may come before all other mods. |
| after:* | Says that this mod may come after all other mods. |
| before:mod_x | Says that this mod may come before mod_x |
| after:mod_x | Says that this mod may come after mod_x |
| after:mod_x;after:mod_y | Says that this mod may come after mod_x and mod_y |
public abstract java.lang.String getVersion()
public void keyboardEvent(afu event)
event - Reference to the key pressed.ModLoader.registerKey(BaseMod, afu, boolean)public void receiveCustomPacket(ee packet)
public void receiveChatPacket(java.lang.String text)
public abstract void load()
public void modsLoaded()
public void onItemPickup(yw player,
aan 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.
public boolean onTickInGUI(float tick,
net.minecraft.client.Minecraft game,
vp gui)
tick - Partial tick. Used for smooth animation.game - Instance of the Minecraft class.gui - Current GUI that is open.
public void registerAnimation(net.minecraft.client.Minecraft game)
game - Instance of the Minecraft class.ModLoader.registerAllTextureOverrides(aaw),
ModLoader.addAnimation(tt)
public void renderInvBlock(vl renderer,
pb 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(vl renderer,
ali world,
int x,
int y,
int z,
pb 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(yw player,
aan item,
io matrix)
player - that picked up itemitem - that was picked upmatrix - crafting matrix that is used
public void takenFromFurnace(yw player,
aan 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 | ||||||||