O3Bubbles09

Untitled

Feb 18th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package O3Bubbles09.Common;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.client.renderer.RenderBlocks;
  5. import net.minecraft.world.IBlockAccess;
  6. import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
  7.  
  8. public class RenderCopperOre implements ISimpleBlockRenderingHandler {
  9. public static final float MAX_BLOCK_BOUNDS = 1.0F;
  10. public static final float ONE_PIXEL = MAX_BLOCK_BOUNDS /16;
  11.  
  12. public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer) {
  13.  
  14. }
  15.  
  16. public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
  17.  
  18.  
  19. if(block instanceof BlockModOre) {
  20. renderer.setRenderMinMax(ONE_PIXEL * 7, ONE_PIXEL * 7, ONE_PIXEL * 7, ONE_PIXEL * 9, ONE_PIXEL * 9, ONE_PIXEL * 9);
  21. }
  22.  
  23. return false;
  24. }
  25.  
  26. public boolean shouldRender3DInInventory() {
  27. return false;
  28. }
  29.  
  30. public int getRenderId() {
  31. return 0;
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment