<commit_before>package com.creativemd.creativecore.client.rendering;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class RenderHelper3D {
	
	public static Minecraft mc = Minecraft.getMinecraft();
	
	public static void renderBlock(double x, double y, double z, double width, double height, double length, double rotateX, double rotateY, double rotateZ, double red, double green, double blue, double alpha)
	{
		GL11.glPushMatrix();
		GL11.glTranslated(x, y, z);
		GL11.glEnable(GL12.GL_RESCALE_NORMAL);
		GL11.glRotated(rotateX, 1, 0, 0);
		GL11.glRotated(rotateY, 0, 1, 0);
		GL11.glRotated(rotateZ, 0, 0, 1);
		GL11.glScaled(width, height, length);
		GL11.glColor4d(red, green, blue, alpha);
		
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(0.0f, 1.0f, 0.0f);
		GL11.glVertex3f(-0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(0.5f, 0.5f, -0.5f);
		GL11.glVertex3f(-0.5f, 0.5f, -0.5f);
		GL11.glEnd();
		
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(0.0f, 0.0f, 1.0f);
		GL11.glVertex3f(0.5f, -0.5f, 0.5f);
		GL11.glVertex3f(0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, -0.5f, 0.5f);
		GL11.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(1.0f, 0.0f, 0.0f);
		GL11.glVertex3f(0.5f, 0.5f, -0.5f);
		GL11.glVertex3f(0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(0.5f, -0.5f, 0.5f);
		GL11.glVertex3f(0.5f, -0.5f, -0.5f);
		GL11.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(-1.0f, 0.0f, 0.0f);
		GL11.glVertex3f(-0.5f, -0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, 0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, 0.5f, -0.5f);
		GL11.glVertex3f(-0.5f, -0.5f, -0.5f);
		GL11.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(0.0f, -1.0f, 0.0f);
		GL11.glVertex3f(0.5f, -0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, -0.5f, 0.5f);
		GL11.glVertex3f(-0.5f, -0.5f, -0.5f);
		GL11.glVertex3f(0.5f, -0.5f, -0.5f);
		GL11.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GL11.glNormal3f(0.0f, 0.0f, -1.0f);
		GL11.glVertex3f(0.5f, 0.5f, -0.5f);
		GL11.glVertex3f(0.5f, -0.5f, -0.5f);
		GL11.glVertex3f(-0.5f, -0.5f, -0.5f);
		GL11.glVertex3f(-0.5f, 0.5f, -0.5f);
		GL11.glEnd();
		
		
        GL11.glPopMatrix();
	}
	
	public static void applyDirection(EnumFacing direction)
	{
		int rotation = 0;
		switch(direction)
		{
		case EAST:
			rotation = 0;
			break;
		case NORTH:
			rotation = 90;
			break;
		case SOUTH:
			rotation = 270;
			break;<commit_msg>Updated render method to GlStateManager<commit_after>package com.creativemd.creativecore.client.rendering;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class RenderHelper3D {
	
	public static Minecraft mc = Minecraft.getMinecraft();
	
	public static void renderBlock(double x, double y, double z, double width, double height, double length, double rotateX, double rotateY, double rotateZ, double red, double green, double blue, double alpha)
	{
		GlStateManager.pushMatrix();
		GlStateManager.translate(x, y, z);
		GlStateManager.enableRescaleNormal();
		GlStateManager.rotate((float)rotateX, 1, 0, 0);
		GlStateManager.rotate((float)rotateY, 0, 1, 0);
		GlStateManager.rotate((float)rotateZ, 0, 0, 1);
		GlStateManager.scale(width, height, length);
		GlStateManager.color((float)red, (float)green, (float)blue, (float)alpha);
		
		GlStateManager.glBegin(GL11.GL_POLYGON);
		GlStateManager.glNormal3f(0.0f, 1.0f, 0.0f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(0.5f, 0.5f, -0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, -0.5f);
		GlStateManager.glEnd();
		
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GlStateManager.glNormal3f(0.0f, 0.0f, 1.0f);
		GlStateManager.glVertex3f(0.5f, -0.5f, 0.5f);
		GlStateManager.glVertex3f(0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, 0.5f);
		GlStateManager.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GlStateManager.glNormal3f(1.0f, 0.0f, 0.0f);
		GlStateManager.glVertex3f(0.5f, 0.5f, -0.5f);
		GlStateManager.glVertex3f(0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(0.5f, -0.5f, 0.5f);
		GlStateManager.glVertex3f(0.5f, -0.5f, -0.5f);
		GlStateManager.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GlStateManager.glNormal3f(-1.0f, 0.0f, 0.0f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, -0.5f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, -0.5f);
		GlStateManager.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GlStateManager.glNormal3f(0.0f, -1.0f, 0.0f);
		GlStateManager.glVertex3f(0.5f, -0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, 0.5f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, -0.5f);
		GlStateManager.glVertex3f(0.5f, -0.5f, -0.5f);
		GlStateManager.glEnd();
	 
		GL11.glBegin(GL11.GL_POLYGON);
		//GL11.glColor4d(red, green, blue, alpha);
		GlStateManager.glNormal3f(0.0f, 0.0f, -1.0f);
		GlStateManager.glVertex3f(0.5f, 0.5f, -0.5f);
		GlStateManager.glVertex3f(0.5f, -0.5f, -0.5f);
		GlStateManager.glVertex3f(-0.5f, -0.5f, -0.5f);
		GlStateManager.glVertex3f(-0.5f, 0.5f, -0.5f);
		GlStateManager.glEnd();
		
		
        GlStateManager.popMatrix();
	}
	
	public static void applyDirection(EnumFacing direction)
	{
		int rotation = 0;
		switch(direction)
		{
		case EAST:
			rotation = 0;
			break;
		case NORTH:
			rotation = 90;
			break;
		case SOUTH:
			rotation = 270;
			break;
{'fraction_non_alphanumeric': 0.17307400091171554, 'fraction_numerical': 0.09740161069746239, 'mean_word_length': 3.88641425389755, 'pattern_counts': {'":': 0, '<': 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': '5834643', 'n_tokens_mistral': 3477, 'n_tokens_neox': 3094, 'n_words': 466}