Created
March 12, 2013 18:13
-
-
Save AlphaModder/5145390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.alphamodder.quantumtech.machine.assembly; | |
import net.alphamodder.api.Constants; | |
import net.alphamodder.quantumtech.machine.block.tileentity.AssemblyMachine; | |
import net.minecraft.block.Block; | |
import net.minecraft.client.renderer.RenderBlocks; | |
import net.minecraft.world.IBlockAccess; | |
public class AssemblyMachineCarver extends AssemblyMachine { | |
@Override | |
public void render(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer){ | |
renderer.setRenderMinMax(Constants.ONE_PIXEL * 7, 0.0D, 0.0D, Constants.ONE_PIXEL * 9, Constants.ONE_PIXEL * 10, 0.0D); | |
renderer.renderStandardBlock(block, x, y, z); | |
renderer.setRenderMinMax(Constants.ONE_PIXEL * 7, 0.0D, Constants.MAX_BLOCK_BOUNDS, Constants.ONE_PIXEL * 9, Constants.ONE_PIXEL * 10, Constants.MAX_BLOCK_BOUNDS); | |
renderer.renderStandardBlock(block, x, y, z); | |
renderer.setRenderMinMax(Constants.ONE_PIXEL * 7, Constants.ONE_PIXEL * 10, Constants.ONE_PIXEL, Constants.ONE_PIXEL * 9, Constants.ONE_PIXEL * 11, Constants.MAX_BLOCK_BOUNDS - Constants.ONE_PIXEL); | |
renderer.renderStandardBlock(block, x, y, z); | |
renderer.setOverrideBlockTexture(79); | |
renderer.setRenderMinMax(Constants.ONE_PIXEL * 6, Constants.ONE_PIXEL * 10, Constants.ONE_PIXEL * 6, Constants.ONE_PIXEL * 10, Constants.ONE_PIXEL * 10, Constants.ONE_PIXEL * 10); | |
renderer.renderStandardBlock(block, x, y, z); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment