<commit_before>package brazillianforgers.dynamiccraft.renders;

import brazillianforgers.dynamiccraft.lib.Strings;
import brazillianforgers.dynamiccraft.models.ModelFireWand;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;

public class RenderFireWand implements IItemRenderer{
    private final ModelFireWand wand;
    
    public static ResourceLocation texture = new ResourceLocation(Strings.MODID + ":textures/model/ModelFireWand.png");
   
    public RenderFireWand() {
        wand = new ModelFireWand();
    }

    @Override
    public boolean handleRenderType(ItemStack item, ItemRenderType type) {
        switch(type){
            case EQUIPPED: 
                return true;
            case EQUIPPED_FIRST_PERSON: 
                return true;
            default: 
                return false;
        }
    }

    @Override
    public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
        switch(type){
           
            case EQUIPPED:
                GL11.glPushMatrix();
                   
                Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                   
                GL11.glRotatef(110, 0F, 1F, 0F);
                GL11.glRotatef(130, 1F, 0F, 0F);
                GL11.glRotatef(20, 1F, 0F, 1F);
                GL11.glTranslatef(-0.1F, -0.7F, -0.6F);
                    
                this.wand.render((Entity)data[1], 0, 0, 0, 0, 0, 0.0625F);
                   
                GL11.glPopMatrix();
           
            case EQUIPPED_FIRST_PERSON:
                GL11.glPushMatrix();
                   
                Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                   
                GL11.glRotatef(110, 0F, 1F, 0F);
                GL11.glRotatef(130, 1F, 0F, 0F);
                GL11.glRotatef(20, 1F, 0F, 1F);
                GL11.glTranslatef(-0.1F, -0.7F, -0.6F);
                    
                this.wand.render((Entity)data[1], 0, 0, 0, 0, 0, 0.0625F);
                   
                GL11.glPopMatrix();
            default:
                break;
        }
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
        return false;
    }
}<commit_msg>Fixed  fire wand render<commit_after>package brazillianforgers.dynamiccraft.renders;

import brazillianforgers.dynamiccraft.lib.Strings;
import brazillianforgers.dynamiccraft.models.ModelFireWand;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;

public class RenderFireWand implements IItemRenderer{
    private final ModelFireWand wand;
    
    public static ResourceLocation texture = new ResourceLocation(Strings.MODID + ":textures/model/ModelFireWand.png");
   
    public RenderFireWand() {
        wand = new ModelFireWand();
    }

    @Override
    public boolean handleRenderType(ItemStack item, ItemRenderType type) {
        switch(type){
            case EQUIPPED: 
                return true;
            case EQUIPPED_FIRST_PERSON: 
                return true;
            default: 
                return false;
        }
    }

    @Override
    public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
        switch(type){
           
            case EQUIPPED:
                GL11.glPushMatrix();
                   
                Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                   
                GL11.glRotatef(110, 0F, 1F, 0F);
                GL11.glRotatef(130, 1F, 0F, 0F);
                GL11.glRotatef(30, 1F, 0F, 1F);
                GL11.glTranslatef(0.2F, -1.3F, -0.6F);
                GL11.glScalef(1.5F, 1.5F, 1.5F);
                    
                this.wand.render((Entity)data[1], 0, 0, 0, 0, 0, 0.0625F);
                   
                GL11.glPopMatrix();
           
            case EQUIPPED_FIRST_PERSON:
                GL11.glPushMatrix();
                   
                Minecraft.getMinecraft().renderEngine.bindTexture(texture);
                   
                GL11.glRotatef(110, 0F, 1F, 0F);
                GL11.glRotatef(130, 1F, 0F, 0F);
                GL11.glRotatef(30, 1F, 0F, 1F);
                GL11.glTranslatef(0.2F, -1.3F, -0.6F);
                GL11.glScalef(1.5F, 1.5F, 1.5F);
                
                this.wand.render((Entity)data[1], 0, 0, 0, 0, 0, 0.0625F);
                   
                GL11.glPopMatrix();
            default:
                break;
        }
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) {
        return false;
    }
}
{'fraction_non_alphanumeric': 0.09609250398724083, 'fraction_numerical': 0.04066985645933014, 'mean_word_length': 1.684323167469235, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '6891032', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1509, 'n_words': 279}