Package vazkii.botania.common.block.tile

Examples of vazkii.botania.common.block.tile.TileTinyPotato


  @Override
  public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
    GL11.glPushMatrix();
    GL11.glTranslatef(-0.5F, 0F, -0.5F);
    TileEntityRendererDispatcher.instance.renderTileEntityAt(new TileTinyPotato(), 0.0D, 0.0D, 0.0D, 0.0F);
    GL11.glPopMatrix();
  }
View Full Code Here


  private static final ResourceLocation texture = new ResourceLocation(LibResources.MODEL_TINY_POTATO);
  private static final ModelTinyPotato model = new ModelTinyPotato();

  @Override
  public void renderTileEntityAt(TileEntity var1, double d0, double d1, double d2, float var8) {
    TileTinyPotato potato = (TileTinyPotato) var1;
    GL11.glPushMatrix();
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glColor4f(1F, 1F, 1F, 1F);
    GL11.glTranslated(d0, d1, d2);

    Minecraft.getMinecraft().renderEngine.bindTexture(texture);

    GL11.glTranslatef(0.5F, 1.5F, 0.5F);
    GL11.glScalef(1F, -1F, -1F);
    int meta = potato.getWorldObj() == null ? 3 : potato.getBlockMetadata();
    GL11.glRotatef(meta * 90F - 180F, 0F, 1F, 0F);

    float jump = potato.jumpTicks;
    if(jump > 0)
      jump += var8;
View Full Code Here

    return LibRenderIDs.idTinyPotato;
  }

  @Override
  public TileEntity createNewTileEntity(World world, int meta) {
    return new TileTinyPotato();
  }
View Full Code Here

TOP

Related Classes of vazkii.botania.common.block.tile.TileTinyPotato

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.