Advertisement
Guest User

Untitled

a guest
Dec 13th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public class TileFountainRenderer extends TileEntitySpecialRenderer {
  2.  
  3. private static final ResourceLocation TEX = new ResourceLocation(Knowledge.MODID + ":textures/blocks/tk_misc.qs_cons");
  4. private static final ModelFountain = new ModelFountain();
  5.  
  6. @Override
  7. public void renderTileEntityAt(TileEntity te, double x, double z, double y, float f, int q) {
  8.  
  9. TileFountain t = (te instanceof TileFountain) ? (TileFountain)te : null;
  10.  
  11. GL11.glPushMatrix();
  12. renderModel(t, t.getWorld, t.getPos.getX, t.getPos.getY, t.getPos.getZ, TKBlocks.fountain);
  13. GL11.glPopMatrix();
  14.  
  15. }
  16.  
  17.  
  18. private void renderModel(TileFountain te, World world, int x, int y, int z, Block b) {
  19.  
  20.  
  21.  
  22. Minecraft.getMinecraft.renderEngine.bindTexture(TEX);
  23. model.render(null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
  24.  
  25.  
  26.  
  27.  
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement