<commit_before>package codechicken.enderstorage.client.render.item;

import codechicken.enderstorage.api.Frequency;
import codechicken.enderstorage.client.render.tile.RenderTileEnderTank;
import codechicken.enderstorage.network.TankSynchroniser;
import codechicken.lib.render.IItemRenderer;
import codechicken.lib.render.RenderUtils;
import codechicken.lib.render.TransformUtils;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.block.model.ItemOverrideList;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.client.model.IPerspectiveAwareModel;
import net.minecraftforge.fluids.FluidStack;
import org.apache.commons.lang3.tuple.Pair;

import javax.vecmath.Matrix4f;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by covers1624 on 4/27/2016.
 */
public class EnderTankItemRender implements IItemRenderer, IPerspectiveAwareModel {
    @Override
    public void renderItem(ItemStack item) {
        RenderHelper.enableGUIStandardItemLighting();
        GlStateManager.pushMatrix();
        Frequency frequency = Frequency.fromItemStack(item);
        FluidStack fluidStack = TankSynchroniser.getClientLiquid(frequency);
        RenderTileEnderTank.renderTank(2, 0F, frequency, 0, 0, 0, 0);
        if (fluidStack != null && RenderUtils.shouldRenderFluid(fluidStack)) {
            RenderTileEnderTank.renderLiquid(fluidStack, 0, 0, 0);
        }

        GlStateManager.popMatrix();
        RenderHelper.enableGUIStandardItemLighting();
    }

    @Override
    public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand) {
        return new ArrayList<BakedQuad>();
    }<commit_msg>Remove some incorrect lighting calls, still some lighting artifacts with tanks bu not on other blocks.<commit_after>package codechicken.enderstorage.client.render.item;

import codechicken.enderstorage.api.Frequency;
import codechicken.enderstorage.client.render.tile.RenderTileEnderTank;
import codechicken.enderstorage.network.TankSynchroniser;
import codechicken.lib.render.IItemRenderer;
import codechicken.lib.render.RenderUtils;
import codechicken.lib.render.TransformUtils;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.block.model.ItemOverrideList;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.client.model.IPerspectiveAwareModel;
import net.minecraftforge.fluids.FluidStack;
import org.apache.commons.lang3.tuple.Pair;

import javax.vecmath.Matrix4f;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by covers1624 on 4/27/2016.
 */
public class EnderTankItemRender implements IItemRenderer, IPerspectiveAwareModel {
    @Override
    public void renderItem(ItemStack item) {
        GlStateManager.pushMatrix();
        Frequency frequency = Frequency.fromItemStack(item);
        FluidStack fluidStack = TankSynchroniser.getClientLiquid(frequency);
        RenderTileEnderTank.renderTank(2, 0F, frequency, 0, 0, 0, 0);
        if (fluidStack != null && RenderUtils.shouldRenderFluid(fluidStack)) {
            RenderTileEnderTank.renderLiquid(fluidStack, 0, 0, 0);
        }

        GlStateManager.popMatrix();
    }

    @Override
    public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand) {
        return new ArrayList<BakedQuad>();
    }
{'fraction_non_alphanumeric': 0.09521496235122662, 'fraction_numerical': 0.010687393733300948, 'mean_word_length': 5.118870728083209, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5220903', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1235, 'n_words': 211}