|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.minecraft.src.forge.MinecraftForge
public class MinecraftForge
| Constructor Summary | |
|---|---|
MinecraftForge()
|
|
| Method Summary | |
|---|---|
static void |
addPickaxeBlockEffectiveAgainst(net.minecraft.src.Block block)
This function is deprecated and will be removed eventually. |
static net.minecraft.src.ItemStack |
fillCustomBucket(net.minecraft.src.World w,
int i,
int j,
int k)
This is not supposed to be called outside of Minecraft internals. |
static void |
killMinecraft(java.lang.String modname,
java.lang.String msg)
Kill minecraft with an error message. |
static void |
registerCraftingHandler(ICraftingHandler handler)
Registers a new crafting handler. |
static void |
registerCustomBucketHander(IBucketHandler handler)
Deprecated. Spelling mistake, don't use this function! It will go away soon. |
static void |
registerCustomBucketHandler(IBucketHandler handler)
Register a new custom bucket handler. |
static void |
registerDestroyToolHandler(IDestroyToolHandler handler)
Registers a new destroy tool handler. |
static void |
registerSleepHandler(ISleepHandler handler)
Registers a new sleeping handler. |
static void |
removeBlockEffectiveness(net.minecraft.src.Block bl,
int md,
java.lang.String tclass)
Remove a block effectiveness mapping. |
static void |
removeBlockEffectiveness(net.minecraft.src.Block bl,
java.lang.String tclass)
Remove a block effectiveness mapping. |
static void |
setBlockHarvestLevel(net.minecraft.src.Block bl,
int md,
java.lang.String tclass,
int hlevel)
Register a block to be harvested by a tool class. |
static void |
setBlockHarvestLevel(net.minecraft.src.Block bl,
java.lang.String tclass,
int hlevel)
Register a block to be harvested by a tool class. |
static void |
setToolClass(net.minecraft.src.Item tool,
java.lang.String tclass,
int hlevel)
Register a tool as a tool class with a given harvest level. |
static void |
versionDetect(java.lang.String modname,
int major,
int minor,
int revision)
Version checking. |
static void |
versionDetectStrict(java.lang.String modname,
int major,
int minor,
int revision)
Strict version checking. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinecraftForge()
| Method Detail |
|---|
public static void registerCustomBucketHander(IBucketHandler handler)
public static void registerCustomBucketHandler(IBucketHandler handler)
public static void registerSleepHandler(ISleepHandler handler)
public static void registerDestroyToolHandler(IDestroyToolHandler handler)
public static void registerCraftingHandler(ICraftingHandler handler)
public static net.minecraft.src.ItemStack fillCustomBucket(net.minecraft.src.World w,
int i,
int j,
int k)
public static void setToolClass(net.minecraft.src.Item tool,
java.lang.String tclass,
int hlevel)
tool - The custom tool to register.tclass - The tool class to register as. The predefined tool
clases are "pickaxe", "shovel", "axe". You can add others for custom
tools.hlevel - The harvest level of the tool.
public static void setBlockHarvestLevel(net.minecraft.src.Block bl,
int md,
java.lang.String tclass,
int hlevel)
bl - The block to register.md - The metadata for the block subtype.tclass - The tool class to register as able to remove this block.
You may register the same block multiple times with different tool
classes, if multiple tool types can be used to harvest this block.hlevel - The minimum tool harvest level required to successfully
harvest the block.for details on tool classes.
public static void removeBlockEffectiveness(net.minecraft.src.Block bl,
int md,
java.lang.String tclass)
bl - The block to remove effectiveness from.md - The metadata for the block subtype.tclass - The tool class to remove the effectiveness mapping from.for details on tool classes.
public static void setBlockHarvestLevel(net.minecraft.src.Block bl,
java.lang.String tclass,
int hlevel)
bl - The block to register.tclass - The tool class to register as able to remove this block.
You may register the same block multiple times with different tool
classes, if multiple tool types can be used to harvest this block.hlevel - The minimum tool harvest level required to successfully
harvest the block.for details on tool classes.
public static void removeBlockEffectiveness(net.minecraft.src.Block bl,
java.lang.String tclass)
bl - The block to remove effectiveness from.tclass - The tool class to remove the effectiveness mapping from.for details on tool classes.public static void addPickaxeBlockEffectiveAgainst(net.minecraft.src.Block block)
public static void killMinecraft(java.lang.String modname,
java.lang.String msg)
public static void versionDetect(java.lang.String modname,
int major,
int minor,
int revision)
public static void versionDetectStrict(java.lang.String modname,
int major,
int minor,
int revision)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||