mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-25 14:34:28 +00:00
Tweak block rendering organization. Add in worldgen for client.
This commit is contained in:
1 parent
36b05d9378
commit
a36fccc9b0
10 files changed
+75
-169
No files matched your search
@@ -42,7 +42,6 @@ import cpw.mods.fml.common.IKeyHandler;
|
||||
import cpw.mods.fml.common.INetworkHandler;
|
||||
import cpw.mods.fml.common.IPickupNotifier;
|
||||
import cpw.mods.fml.common.IPlayerTracker;
|
||||
import cpw.mods.fml.common.IBlockRenderInfo;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.LoaderException;
|
||||
@@ -59,7 +58,6 @@ public class ModLoaderModContainer implements ModContainer
|
||||
private ArrayList<String> dependencies;
|
||||
private ArrayList<String> preDependencies;
|
||||
private ArrayList<String> postDependencies;
|
||||
private ArrayList<IBlockRenderInfo> blockRenderInfos;
|
||||
private ArrayList<IKeyHandler> keyHandlers;
|
||||
private ModState state;
|
||||
|
||||
@@ -592,18 +590,6 @@ public class ModLoaderModContainer implements ModContainer
|
||||
return ticks;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param renderId
|
||||
* @param inventoryRenderer
|
||||
*/
|
||||
public void addRenderHandler(IBlockRenderInfo handler)
|
||||
{
|
||||
if (blockRenderInfos==null) {
|
||||
blockRenderInfos=new ArrayList<IBlockRenderInfo>();
|
||||
}
|
||||
blockRenderInfos.add(handler);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param keyHandler
|
||||
* @param allowRepeat
|
||||
@@ -624,24 +610,4 @@ public class ModLoaderModContainer implements ModContainer
|
||||
}
|
||||
return keyHandlers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param block
|
||||
* @param metadata
|
||||
* @param modelID
|
||||
* @param renderer
|
||||
*/
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, Object renderer)
|
||||
{
|
||||
mod.onRenderInventoryBlock(renderer, block, metadata, modelID);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see cpw.mods.fml.common.ModContainer#renderWorldBlock(net.minecraft.src.IBlockAccess, int, int, int, net.minecraft.src.Block, int, java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelID, Object renderer)
|
||||
{
|
||||
return mod.onRenderWorldBlock(world, x, y, z, block, modelID, renderer);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user