Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TileFountainRenderer extends TileEntitySpecialRenderer {
- private static final ResourceLocation TEX = new ResourceLocation(Knowledge.MODID + ":textures/blocks/tk_misc.qs_cons");
- private static final ModelFountain = new ModelFountain();
- @Override
- public void renderTileEntityAt(TileEntity te, double x, double z, double y, float f, int q) {
- TileFountain t = (te instanceof TileFountain) ? (TileFountain)te : null;
- GL11.glPushMatrix();
- renderModel(t, t.getWorld, t.getPos.getX, t.getPos.getY, t.getPos.getZ, TKBlocks.fountain);
- GL11.glPopMatrix();
- }
- private void renderModel(TileFountain te, World world, int x, int y, int z, Block b) {
- Minecraft.getMinecraft.renderEngine.bindTexture(TEX);
- model.render(null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement