<commit_before>package crazypants.enderio.machine.killera;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import com.enderio.core.client.render.RenderUtil;

import crazypants.enderio.render.HalfBakedQuad.HalfBakedList;
import crazypants.enderio.render.TankRenderHelper;

@SideOnly(Side.CLIENT)
public class KillerJoeRenderer extends TileEntitySpecialRenderer<TileKillerJoe> {

  @Override
  public void renderTileEntityAt(TileKillerJoe te, double x, double y, double z, float partialTicks, int destroyStage) {

    if(te != null) {
      if (MinecraftForgeClient.getRenderPass() == 0 && te.getStackInSlot(0) != null) {
        RenderUtil.setupLightmapCoords(te.getPos(), te.getWorld());
        GlStateManager.pushMatrix();
        GlStateManager.translate((float) x, (float) y, (float) z);
        GlStateManager.enableLighting();
        renderSword(te.facing, te.getStackInSlot(0), te.getSwingProgress(partialTicks), false); // TODO 1.9 hand
        GlStateManager.popMatrix();
      } else if (MinecraftForgeClient.getRenderPass() == 1) {
        HalfBakedList buffer = TankRenderHelper.mkTank(te.tank, 2.51, 1, 14, false);<commit_msg>Made Killer Joe mimic the player's way of holding swords<commit_after>package crazypants.enderio.machine.killera;

import com.enderio.core.client.render.RenderUtil;

import crazypants.enderio.render.HalfBakedQuad.HalfBakedList;
import crazypants.enderio.render.TankRenderHelper;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.EnumHandSide;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class KillerJoeRenderer extends TileEntitySpecialRenderer<TileKillerJoe> {

  @Override
  public void renderTileEntityAt(TileKillerJoe te, double x, double y, double z, float partialTicks, int destroyStage) {

    if(te != null) {
      if (MinecraftForgeClient.getRenderPass() == 0 && te.getStackInSlot(0) != null) {
        RenderUtil.setupLightmapCoords(te.getPos(), te.getWorld());
        GlStateManager.pushMatrix();
        GlStateManager.translate((float) x, (float) y, (float) z);
        GlStateManager.enableLighting();
        renderSword(te.facing, te.getStackInSlot(0), te.getSwingProgress(partialTicks),
            Minecraft.getMinecraft().thePlayer.getPrimaryHand() == EnumHandSide.LEFT);
        GlStateManager.disableLighting();
        GlStateManager.popMatrix();
      } else if (MinecraftForgeClient.getRenderPass() == 1) {
        HalfBakedList buffer = TankRenderHelper.mkTank(te.tank, 2.51, 1, 14, false);
{'fraction_non_alphanumeric': 0.11015384615384616, 'fraction_numerical': 0.00676923076923077, 'mean_word_length': 5.192380952380953, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7251287', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1032, 'n_words': 175}