|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectModLoader
public final class ModLoader
ModLoader loads classes that inherit from BaseMod
and adds them to a
list for use.
Field Summary | |
---|---|
static boolean |
texturesOverridden
Whether RegisterAllTextureOverrides has already run. |
Method Summary | ||
---|---|---|
static void |
AddAllEntityIDs()
Place holder for calling the function that adds entity IDs, which are used for SMP, MobSpawner, and saving. |
|
static int |
AddAllFuel(int id)
Used for adding new sources of fuel to the furnace. |
|
static void |
AddAllRecipes(en recipes)
Used to add recipes from all the mods. |
|
static void |
AddAllRenderers(java.util.Map<java.lang.Class<? extends lw>,aq> renderers)
Used to add all mod entity renderers. |
|
static int |
AddAllSmelting(int id)
Used for adding new options to the furnace for item creation. |
|
static void |
addOverride(java.lang.String path,
java.lang.String overlayPath,
int index)
Registers one texture override to be done. |
|
static
|
getPrivateValue(java.lang.Object instance,
java.lang.String field)
Used for getting value of private fields. |
|
static int |
getUniqueEntityId()
Gets next Entity ID to use. |
|
static int |
getUniqueSpriteIndex(java.lang.String path)
Gets next available index for this sprite map. |
|
static boolean |
isModLoaded(java.lang.String mod)
Checks if a mod is loaded. |
|
static bp |
OpenModGUI(bq player,
java.lang.Object instance)
Opens GUI for use with mods. |
|
static void |
PopulateChunk(bd generator,
int chunkX,
int chunkZ,
cy world)
Used for generating new blocks in the world. |
|
static void |
RegisterAllBlocks(java.util.List<nq> registry)
Used to register all mod blocks that the client can use. |
|
static void |
RegisterAllTextureOverrides(fu texCache)
Processes all registered texture overrides, modifies internal buffers. |
|
static void |
RegisterAllTileEntities()
Place holder for calling the function that adds TileEntities. |
|
static void |
RunOSDHooks(net.minecraft.client.Minecraft game)
Runs all registered OSD hooks, run by GUIInGame. |
|
static
|
setPrivateValue(java.lang.Object instance,
java.lang.String field,
T value)
Used for setting value of private fields. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean texturesOverridden
Method Detail |
---|
public static void AddAllEntityIDs()
public static int AddAllFuel(int id)
id
- ItemID for the item to use as fuel.
public static void AddAllRecipes(en recipes)
recipes
- Recipe instance to add to.public static void AddAllRenderers(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 static int AddAllSmelting(int id)
id
- ItemID of the input item.
public static void addOverride(java.lang.String path, java.lang.String overlayPath, int index)
path
- Path to the texture file to modify.overlayPath
- Path to the texture file which is to be overlaid.index
- Sprite index into the texture to be modified.public static <T> T getPrivateValue(java.lang.Object instance, java.lang.String field) throws java.lang.SecurityException, java.lang.NoSuchFieldException
T
- Return type.instance
- Object to get private field from.field
- Name of the field.
java.lang.SecurityException
- if the thread is not allowed to access field.
java.lang.NoSuchFieldException
- if field does not exist.public static <T> void setPrivateValue(java.lang.Object instance, java.lang.String field, T value) throws java.lang.SecurityException, java.lang.NoSuchFieldException
T
- Type of value.instance
- Object to get private field from.field
- Name of the field.value
- Value to set.
java.lang.SecurityException
- if the thread is not allowed to access field.
java.lang.NoSuchFieldException
- if field does not exist.public static int getUniqueEntityId()
public static int getUniqueSpriteIndex(java.lang.String path)
path
- Sprite map to get available index from.
public static boolean isModLoaded(java.lang.String mod)
mod
- Name of the mod to check for.
public static 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 static void PopulateChunk(bd generator, int chunkX, int chunkZ, cy world)
generator
- Generator to pair with.chunkX
- X coordinate of chunk.chunkZ
- Z coordinate of chunk.world
- World to generate blocks in.public static void RegisterAllBlocks(java.util.List<nq> registry)
registry
- List of blocks to add to.public static void RegisterAllTextureOverrides(fu texCache)
texCache
- Reference to texture cache.public static void RegisterAllTileEntities()
public static void RunOSDHooks(net.minecraft.client.Minecraft game)
game
- instance of the game class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |