net.minecraft.client.renderer.block.model.ItemCameraTransforms Java Examples

The following examples show how to use net.minecraft.client.renderer.block.model.ItemCameraTransforms. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LayerTofunianHeldItem.java    From TofuCraftReload with MIT License 6 votes vote down vote up
private void renderHeldItem(EntityLivingBase p_188358_1_, ItemStack p_188358_2_, ItemCameraTransforms.TransformType p_188358_3_, EnumHandSide handSide)
{
    if (!p_188358_2_.isEmpty())
    {
        GlStateManager.pushMatrix();

        if (p_188358_1_.isSneaking())
        {
            GlStateManager.translate(0.0F, 0.2F, 0.0F);
        }
        // Forge: moved this call down, fixes incorrect offset while sneaking.
        this.translateToHand(handSide);
        GlStateManager.rotate(-90.0F, 1.0F, 0.0F, 0.0F);
        GlStateManager.rotate(180.0F, 0.0F, 1.0F, 0.0F);
        boolean flag = handSide == EnumHandSide.LEFT;
        GlStateManager.translate((float)(flag ? -1 : 1) / 60.0F, 0.125F, -0.25F);
        Minecraft.getMinecraft().getItemRenderer().renderItemSide(p_188358_1_, p_188358_2_, p_188358_3_, flag);
        GlStateManager.popMatrix();
    }
}
 
Example #2
Source File: RenderHelper.java    From HoloInventory with MIT License 6 votes vote down vote up
public static void renderStack(RenderItem ri, ItemStack stack, int cols, int col, int rows, int row)
{
    GlStateManager.pushMatrix();
    GlStateManager.pushAttrib();
    GlStateManager.translate(0.4f * (cols / 2.0 - col) - 0.2f, 0.4f * (rows / 2.0 - row), 0);
    GlStateManager.pushMatrix();
    GlStateManager.rotate((float) (360.0 * (double) (System.currentTimeMillis() & 0x3FFFL) / (double) 0x3FFFL), 0, 1, 0);
    GlStateManager.scale(0.45, 0.45, 0.45);

    ri.renderItem(stack, ItemCameraTransforms.TransformType.FIXED);

    if (stack.hasEffect())
    {
        GlStateManager.disableAlpha();
        GlStateManager.disableRescaleNormal();
        GlStateManager.disableLighting();
    }
    GlStateManager.popMatrix();

    GlStateManager.popAttrib();
    GlStateManager.popMatrix();
}
 
Example #3
Source File: RenderEntityEnderPearl.java    From enderutilities with GNU Lesser General Public License v3.0 6 votes vote down vote up
@Override
public void doRender(EntityEnderPearlReusable entity, double x, double y, double z, float entityYaw, float partialTicks)
{
    GlStateManager.pushMatrix();
    GlStateManager.translate((float)x, (float)y, (float)z);
    GlStateManager.enableRescaleNormal();
    GlStateManager.rotate(-this.renderManager.playerViewY, 0.0f, 1.0f, 0.0f);
    GlStateManager.rotate(this.renderManager.playerViewX, 1.0f, 0.0f, 0.0f);
    this.bindTexture(this.getEntityTexture(entity));

    this.renderItem.renderItem(this.getItemStack(entity), ItemCameraTransforms.TransformType.GROUND);

    GlStateManager.disableRescaleNormal();
    GlStateManager.popMatrix();
    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
Example #4
Source File: RenderWaterPad.java    From AgriCraft with MIT License 6 votes vote down vote up
@Override
public void renderInventoryBlock(ITessellator tess, World world, IBlockState state, BlockWaterPad block,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type) {

    // Icons
    final TextureAtlasSprite matIcon = BaseIcons.DIRT.getIcon();
    final TextureAtlasSprite waterIcon = BaseIcons.WATER_STILL.getIcon();

    // Draw Base
    renderBase(tess, matIcon);

    // Draw Sides
    for (EnumFacing dir : EnumFacing.HORIZONTALS) {
        renderSide(tess, dir, matIcon);
    }

    // Full
    if (AgriProperties.POWERED.getValue(state)) {
        renderWater(tess, waterIcon);
    }
}
 
Example #5
Source File: RenderCyberlimbHand.java    From Cyberware with MIT License 6 votes vote down vote up
public void renderItemSide(EntityLivingBase entitylivingbaseIn, ItemStack heldStack, ItemCameraTransforms.TransformType transform, boolean p_187462_4_)
{
	if (heldStack != null)
	{
		Item item = heldStack.getItem();
		Block block = Block.getBlockFromItem(item);
		GlStateManager.pushMatrix();
		boolean flag = this.itemRenderer.shouldRenderItemIn3D(heldStack) && this.isBlockTranslucent(block);

		if (flag)
		{
			GlStateManager.depthMask(false);
		}

		this.itemRenderer.renderItem(heldStack, entitylivingbaseIn, transform, p_187462_4_);

		if (flag)
		{
			GlStateManager.depthMask(true);
		}

		GlStateManager.popMatrix();
	}
}
 
Example #6
Source File: LayerTofunianHeldItem.java    From TofuCraftReload with MIT License 6 votes vote down vote up
public void doRenderLayer(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale)
{
    boolean flag = entitylivingbaseIn.getPrimaryHand() == EnumHandSide.RIGHT;
    ItemStack itemstack = flag ? entitylivingbaseIn.getHeldItemOffhand() : entitylivingbaseIn.getHeldItemMainhand();
    ItemStack itemstack1 = flag ? entitylivingbaseIn.getHeldItemMainhand() : entitylivingbaseIn.getHeldItemOffhand();

    if (!itemstack.isEmpty() || !itemstack1.isEmpty())
    {
        GlStateManager.pushMatrix();

        if (this.livingEntityRenderer.getMainModel().isChild)
        {
            GlStateManager.translate(0.0F, 0.75F, 0.0F);
            GlStateManager.scale(0.5F, 0.5F, 0.5F);
        }

        this.renderHeldItem(entitylivingbaseIn, itemstack1, ItemCameraTransforms.TransformType.THIRD_PERSON_RIGHT_HAND, EnumHandSide.RIGHT);
        this.renderHeldItem(entitylivingbaseIn, itemstack, ItemCameraTransforms.TransformType.THIRD_PERSON_LEFT_HAND, EnumHandSide.LEFT);
        GlStateManager.popMatrix();
    }
}
 
Example #7
Source File: RenderAltar.java    From CommunityMod with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
public void render(TileEntityAltar te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) {
	ItemStack stack = te.getStack();
	if (!stack.isEmpty()) {
		GlStateManager.enableRescaleNormal();
		GlStateManager.pushMatrix();
		GlStateManager.translate(x + 0.5, y + 0.85, z + 0.5);
		GlStateManager.rotate(te.getWorld().getTotalWorldTime() * 4, 0, 1, 0);
		
		Minecraft.getMinecraft().getRenderItem().renderItem(stack, ItemCameraTransforms.TransformType.GROUND);
		
		GlStateManager.popMatrix();
		GlStateManager.disableRescaleNormal();
		
		if (te.altarAnimation != null) {
			switch (te.altarAnimation) {
				case SHOCKWAVE:
					this.renderShockwave(te.animationProgress, te.altarAnimation.animationLength(), x, y, z);
					break;
				default: break;
			}
		}
	}
}
 
Example #8
Source File: FWSmartItemModel.java    From NOVA-Core with GNU Lesser General Public License v3.0 5 votes vote down vote up
@SuppressWarnings("deprecation")
public FWSmartItemModel(Item item) {
	this.item = item;
	// Change the default transforms to the default Item transforms
	this.itemCameraTransforms = new ItemCameraTransforms(
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, -90, -130), new Vector3f(0, 1f / 24f, -2.75f / 16f), new Vector3f(0.9f, 0.9f, 0.9f)), // Third Person (Left)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, -90, -130), new Vector3f(0, 1f / 24f, -2.75f / 16f), new Vector3f(0.9f, 0.9f, 0.9f)), // Third Person (Right)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, -135, 25), new Vector3f(0, 0.25f, 0.125f), new Vector3f(1.7f, 1.7f, 1.7f)), // First Person (Left)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, -135, 25), new Vector3f(0, 0.25f, 0.125f), new Vector3f(1.7f, 1.7f, 1.7f)), // First Person (Rigth)
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // Head
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // new ItemTransformVec3f(new Vector3f(-30, 135, 0), new Vector3f(), new Vector3f(1.6F, 1.6F, 1.6F)), // GUI
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // Ground
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT);// Fixed
}
 
Example #9
Source File: RenderBlockGrate.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
public void renderInventoryBlockWood(ITessellator tessellator, World world, IBlockState state, BlockGrate block, TileEntityGrate tile,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type, TextureAtlasSprite icon) {
    tessellator.drawScaledPrism(7, 0, 1, 9, 16, 3, icon);
    tessellator.drawScaledPrism(7, 0, 5, 9, 16, 7, icon);
    tessellator.drawScaledPrism(7, 0, 9, 9, 16, 11, icon);
    tessellator.drawScaledPrism(7, 0, 13, 9, 16, 15, icon);
    tessellator.drawScaledPrism(7, 1, 0, 9, 3, 16, icon);
    tessellator.drawScaledPrism(7, 5, 0, 9, 7, 16, icon);
    tessellator.drawScaledPrism(7, 9, 0, 9, 11, 16, icon);
    tessellator.drawScaledPrism(7, 13, 0, 9, 15, 16, icon);
}
 
Example #10
Source File: RenderTank.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
protected void renderInventoryBlockWood(ITessellator tess, World world, IBlockState state, BlockWaterTank block, TileEntityTank tile,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type, TextureAtlasSprite sprite) {
    renderSide(tess, EnumFacing.NORTH, (byte)0, sprite);
    renderSide(tess, EnumFacing.EAST, (byte)0, sprite);
    renderSide(tess, EnumFacing.SOUTH, (byte)0, sprite);
    renderSide(tess, EnumFacing.WEST, (byte)0, sprite);
    renderBottom(tess, (byte)0, sprite);
}
 
Example #11
Source File: RenderSprinkler.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
public void renderInventoryBlock(ITessellator tess, World world, IBlockState state, BlockSprinkler block, TileEntitySprinkler tile, ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type) {
    // Save translation matrix.
    tess.pushMatrix();
    
    // Translate to connect to above channel.
    tess.translate(0, -4 * Constants.UNIT, 0);
    
    // Render parts.
    this.renderConnector(tess, tile.getChannelIcon());
    this.renderHead(tess, 0, tile.getHeadIcon());
    
    // Reset matrix.
    tess.popMatrix();
}
 
Example #12
Source File: RenderChannel.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
protected void renderInventoryBlockWood(ITessellator tessellator, World world, IBlockState state, B block, T channel, ItemStack stack,
        EntityLivingBase entity, ItemCameraTransforms.TransformType type, TextureAtlasSprite icon) {
    this.renderBottom(tessellator, icon);
    this.renderSide(tessellator, state, EnumFacing.NORTH, (byte)0, icon);
    this.renderSide(tessellator, state, EnumFacing.EAST, (byte)0, icon);
    this.renderSide(tessellator, state, EnumFacing.SOUTH, (byte)0, icon);
    this.renderSide(tessellator, state, EnumFacing.WEST, (byte)0, icon);

}
 
Example #13
Source File: RenderChannelFull.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
protected void renderInventoryBlockWood(ITessellator tessellator, World world, IBlockState state, BlockWaterChannelFull block, TileEntityChannelFull channel,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type, TextureAtlasSprite icon) {
    this.renderBottom(tessellator, icon);
    this.renderSide(tessellator, state, EnumFacing.NORTH, (byte) 1, icon);
    this.renderSide(tessellator, state, EnumFacing.EAST, (byte) 1, icon);
    this.renderSide(tessellator, state, EnumFacing.SOUTH, (byte) 1, icon);
    this.renderSide(tessellator, state, EnumFacing.WEST, (byte) 1, icon);
}
 
Example #14
Source File: RenderChannelValve.java    From AgriCraft with MIT License 5 votes vote down vote up
@Override
public void renderInventoryBlockWood(ITessellator tessellator, World world, IBlockState state, BlockWaterChannelValve block, TileEntityChannelValve tile,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type, TextureAtlasSprite icon) {

    final TextureAtlasSprite sepIcon = BaseIcons.IRON_BLOCK.getIcon();

    //Render channel.
    tessellator.drawScaledPrism(2, 4, 4, 14, 12, 5, icon);
    tessellator.drawScaledPrism(2, 4, 11, 14, 12, 12, icon);
    tessellator.drawScaledPrism(2, 4, 5, 14, 5, 11, icon);

    //Render separators.
    tessellator.drawScaledPrism(0.001f, 11.5f, 5, 1.999f, 15.001f, 11, sepIcon);
    tessellator.drawScaledPrism(0.001f, 0.999f, 5, 1.999f, 5.5f, 11, sepIcon);
    tessellator.drawScaledPrism(14.001f, 11.5f, 5, 15.999f, 15.001f, 11, sepIcon);
    tessellator.drawScaledPrism(14.001f, 0.999f, 5, 15.999f, 5.5f, 11, sepIcon);

    //render the wooden guide rails along z-axis
    tessellator.drawScaledPrism(0, 0, 3.999F, 2, 16, 5.999F, icon);
    tessellator.translate(0, 0, 6 * Constants.UNIT);
    tessellator.drawScaledPrism(0, 0, 3.999F, 2, 16, 5.999F, icon);
    tessellator.translate(14 * Constants.UNIT, 0, 0);
    tessellator.drawScaledPrism(0, 0, 3.999F, 2, 16, 5.999F, icon);
    tessellator.translate(0, 0, -6 * Constants.UNIT);
    tessellator.drawScaledPrism(0, 0, 3.999F, 2, 16, 5.999F, icon);
    tessellator.translate(-14 * Constants.UNIT, 0, 0);
}
 
Example #15
Source File: RenderTileEntityOben.java    From Sakura_mod with MIT License 5 votes vote down vote up
@Override
public void render(TileEntityOben te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) {
	
	if(!te.getInventory().getStackInSlot(0).isEmpty()){
		ItemStack stack = te.getInventory().getStackInSlot(0);
	    GlStateManager.pushMatrix();
	    GlStateManager.translate(x + 0.5D, y + 0.4D, z + 0.5D);
	    GlStateManager.scale(0.75F, 0.75F, 0.75F);
	    GlStateManager.rotate(getFacingRotate(te), 0.0F, 1.0F, 0.0F);
	    Minecraft.getMinecraft().getRenderItem().renderItem(stack, ItemCameraTransforms.TransformType.FIXED);
	    GlStateManager.popMatrix();
	}
}
 
Example #16
Source File: ModelEnderBucket.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
public BakedEnderBucket(ModelEnderBucket parent, ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, VertexFormat format,
        ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms, Map<String, IBakedModel> cache)
{
    this.quads = quads;
    this.particle = particle;
    this.format = format;
    this.parent = parent;
    this.transforms = transforms;
    this.cache = cache;
}
 
Example #17
Source File: RenderEntityThrownItem.java    From Production-Line with MIT License 5 votes vote down vote up
/**
 * Renders the desired {@code T} type Entity.
 */
@Override
public void doRender(T entity, double x, double y, double z, float entityYaw, float partialTicks) {
    GlStateManager.pushMatrix();
    GlStateManager.translate((float) x, (float) y, (float) z);
    GlStateManager.enableRescaleNormal();
    GlStateManager.rotate(-this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
    GlStateManager.rotate((float) (this.renderManager.options.thirdPersonView == 2 ? -1 : 1) * this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
    GlStateManager.rotate(180.0F, 0.0F, 1.0F, 0.0F);
    this.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);

    if (this.renderOutlines) {
        GlStateManager.enableColorMaterial();
        GlStateManager.enableOutlineMode(this.getTeamColor(entity));
    }

    this.itemRenderer.renderItem(this.getStackToRender(entity), ItemCameraTransforms.TransformType.GROUND);

    if (this.renderOutlines) {
        GlStateManager.disableOutlineMode();
        GlStateManager.disableColorMaterial();
    }

    GlStateManager.disableRescaleNormal();
    GlStateManager.popMatrix();
    super.doRender(entity, x, y, z, entityYaw, partialTicks);
}
 
Example #18
Source File: FWSmartBlockModel.java    From NOVA-Core with GNU Lesser General Public License v3.0 5 votes vote down vote up
@SuppressWarnings("deprecation")
public FWSmartBlockModel(Block block, Optional<Item> item) {
	this.block = block;
	this.item = item;
	// Change the default transforms to the default full Block transforms
	this.itemCameraTransforms = new ItemCameraTransforms(
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(75, 225, 0), new Vector3f(0, 0.1875f, 0.03125f), new Vector3f(0.375f, 0.375f, 0.375f)), // Third Person (Left)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(75, 45, 0), new Vector3f(0, 0.1875f, 0.03125f), new Vector3f(0.375f, 0.375f, 0.375f)), // Third Person (Right)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, 225, 0), new Vector3f(0, 0, 0), new Vector3f(0.4f, 0.4f, 0.4f)), // First Person (Left)
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(0, 45, 0), new Vector3f(0, 0, 0), new Vector3f(0.4f, 0.4f, 0.4f)), // First Person (Right)
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // Head
		new net.minecraft.client.renderer.block.model.ItemTransformVec3f(new Vector3f(30, 225, 0), new Vector3f(0, 0, 0), new Vector3f(0.625f, 0.625f, 0.625f)), // GUI
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT, // Ground
		net.minecraft.client.renderer.block.model.ItemTransformVec3f.DEFAULT);// Fixed
}
 
Example #19
Source File: InfuserCoreBakedModel.java    From Valkyrien-Skies with Apache License 2.0 5 votes vote down vote up
@Override
public Pair<? extends IBakedModel, Matrix4f> handlePerspective(
    ItemCameraTransforms.TransformType cameraTransformType) {
    switch (cameraTransformType) {
        case GUI:
            return inventoryModel.handlePerspective(cameraTransformType);
        default:
            return handModel.handlePerspective(cameraTransformType);
    }
}
 
Example #20
Source File: ModelEnderTools.java    From enderutilities with GNU Lesser General Public License v3.0 5 votes vote down vote up
public BakedEnderTool(ModelEnderTools parent, ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, VertexFormat format,
        ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms, Map<String, IBakedModel> cache)
{
    this.quads = quads;
    this.particle = particle;
    this.format = format;
    this.parent = parent;
    this.transforms = transforms;
    this.cache = cache;
}
 
Example #21
Source File: PearlInfusionRecipe.java    From Wizardry with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void renderInput(World world, BlockPos pos, ItemStack input, float partialTicks) {
	GlStateManager.pushMatrix();
	GlStateManager.translate(0.5, 1, 0.5);
	GlStateManager.scale(0.4, 0.4, 0.4);
	GlStateManager.rotate((float) (ClientTickHandler.getTicks() * 10.0), 0, 1, 0);
	GlStateManager.translate(0, 0.5 + Math.sin((ClientTickHandler.getTicks() + partialTicks) / 5) / 10.0, 0);
	Minecraft.getMinecraft().getRenderItem().renderItem(input, ItemCameraTransforms.TransformType.NONE);
	GlStateManager.popMatrix();
}
 
Example #22
Source File: SurfaceHelper.java    From ForgeHax with MIT License 5 votes vote down vote up
private static void renderItemModelIntoGUI(
    ItemStack stack, double x, double y, IBakedModel bakedmodel, double scale) {
  GlStateManager.pushMatrix();
  MC.getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
  MC.getTextureManager()
      .getTexture(TextureMap.LOCATION_BLOCKS_TEXTURE)
      .setBlurMipmap(false, false);
  GlStateManager.enableRescaleNormal();
  GlStateManager.enableAlpha();
  GlStateManager.alphaFunc(516, 0.1F);
  GlStateManager.enableBlend();
  GlStateManager.blendFunc(
      GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA);
  GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
  
  GlStateManager.translate(x, y, 100.0F + MC.getRenderItem().zLevel);
  GlStateManager.translate(8.0F, 8.0F, 0.0F);
  GlStateManager.scale(1.0F, -1.0F, 1.0F);
  GlStateManager.scale(scale, scale, scale);
  
  if (bakedmodel.isGui3d()) {
    GlStateManager.enableLighting();
  } else {
    GlStateManager.disableLighting();
  }
  
  bakedmodel =
      net.minecraftforge.client.ForgeHooksClient.handleCameraTransforms(
          bakedmodel, ItemCameraTransforms.TransformType.GUI, false);
  MC.getRenderItem().renderItem(stack, bakedmodel);
  GlStateManager.disableAlpha();
  GlStateManager.disableRescaleNormal();
  GlStateManager.disableLighting();
  GlStateManager.popMatrix();
  MC.getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
  MC.getTextureManager().getTexture(TextureMap.LOCATION_BLOCKS_TEXTURE).restoreLastBlurMipmap();
}
 
Example #23
Source File: LayerBag.java    From BetterChests with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
public void doRenderLayer(EntityLivingBase entity, float limbSwing, float limbSwingAmount,
                          float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {

	GL11.glPushMatrix();
	GL11.glRotatef(180, 0, 0, 1);
	GL11.glTranslatef(0, -1 * ONE_PIXEL, 4 * ONE_PIXEL);
	Minecraft.getMinecraft().getRenderItem().renderItem(bag, ItemCameraTransforms.TransformType.NONE);
	GL11.glPopMatrix();
}
 
Example #24
Source File: BakedModelBarrel.java    From enderutilities with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public ItemCameraTransforms getItemCameraTransforms()
{
    return this.bakedBaseModel.getItemCameraTransforms();
}
 
Example #25
Source File: RenderBlockCustomWood.java    From AgriCraft with MIT License 4 votes vote down vote up
@Override
public final void renderInventoryBlock(ITessellator tessellator, World world, IBlockState state, B block, T tile,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type) {
    tile.setMaterial(stack);
    this.renderInventoryBlockWood(tessellator, world, state, block, tile, stack, entity, type, getIcon(tile));
}
 
Example #26
Source File: BakedModelCamouflageBlock.java    From enderutilities with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public ItemCameraTransforms getItemCameraTransforms()
{
    return this.bakedBaseModel.getItemCameraTransforms();
}
 
Example #27
Source File: BakedModelInserter.java    From enderutilities with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public ItemCameraTransforms getItemCameraTransforms()
{
    return this.bakedBaseModel.getItemCameraTransforms();
}
 
Example #28
Source File: ModelNullifierBaked.java    From enderutilities with GNU Lesser General Public License v3.0 4 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public ItemCameraTransforms getItemCameraTransforms()
{
    return this.modelBase.getItemCameraTransforms();
}
 
Example #29
Source File: BakedModelDefaultTexture.java    From WearableBackpacks with MIT License 4 votes vote down vote up
@Deprecated
public ItemCameraTransforms getItemCameraTransforms() { return _baseModel.getItemCameraTransforms(); }
 
Example #30
Source File: RenderPeripheral.java    From AgriCraft with MIT License 4 votes vote down vote up
@Override
public void renderInventoryBlock(ITessellator tessellator, World world, IBlockState state, BlockPeripheral block, TileEntityPeripheral tile,
        ItemStack stack, EntityLivingBase entity, ItemCameraTransforms.TransformType type) {
    renderChasis(tessellator);
    renderProbe(tessellator);
}