Reorganized github - Renamed packages lowercase

This commit is contained in:
GotoLink 2013-10-20 23:40:12 +02:00
commit 579ddee7f0
362 changed files with 5163 additions and 8935 deletions

View file

@ -1,73 +1,59 @@
package MysticWorld.Renderer;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import MysticWorld.Items.ItemHandler$1;
import MysticWorld.Items.ItemStaffPower;
package mysticworld.renderer;
import mysticworld.items.ItemHandler$1;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.Entity;
import net.minecraft.entity.projectile.EntityFireball;
import net.minecraft.entity.projectile.EntityPotion;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPotion;
import net.minecraft.potion.PotionHelper;
import net.minecraft.util.Icon;
import net.minecraft.util.ResourceLocation;
public class RenderStaffPower extends Render {
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
public class RenderStaffPower extends Render {
private Item item;
private int meta = 0;
public RenderStaffPower(int par1)
{
this.meta = par1;
}
public RenderStaffPower(int par1) {
this.meta = par1;
}
public void doRenderEntity(Entity entity, double par2, double par4, double par6, float par8, float par9)
{
GL11.glPushMatrix();
this.func_110777_b(entity);
GL11.glTranslatef((float)par2, (float)par4, (float)par6);
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
Icon icon = ItemHandler$1.staffPower.getIconFromDamage(this.meta);
Tessellator tessellator = Tessellator.instance;
float f3 = icon.getMinU();
float f4 = icon.getMaxU();
float f5 = icon.getMinV();
float f6 = icon.getMaxV();
float f7 = 1.0F;
float f8 = 0.5F;
float f9 = 0.25F;
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 1.0F, 0.0F);
tessellator.addVertexWithUV((double)(0.0F - f8), (double)(0.0F - f9), 0.0D, (double)f3, (double)f6);
tessellator.addVertexWithUV((double)(f7 - f8), (double)(0.0F - f9), 0.0D, (double)f4, (double)f6);
tessellator.addVertexWithUV((double)(f7 - f8), (double)(1.0F - f9), 0.0D, (double)f4, (double)f5);
tessellator.addVertexWithUV((double)(0.0F - f8), (double)(1.0F - f9), 0.0D, (double)f3, (double)f5);
tessellator.draw();
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
GL11.glPopMatrix();
}
@Override
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
this.doRenderEntity(par1Entity, par2, par4, par6, par8, par9);
}
protected ResourceLocation func_110790_a(Entity par1Entity)
{
return TextureMap.field_110576_c;
}
public void doRenderEntity(Entity entity, double par2, double par4, double par6, float par8, float par9) {
GL11.glPushMatrix();
this.bindEntityTexture(entity);
GL11.glTranslatef((float) par2, (float) par4, (float) par6);
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
Icon icon = ItemHandler$1.staffPower.getIconFromDamage(this.meta);
Tessellator tessellator = Tessellator.instance;
float f3 = icon.getMinU();
float f4 = icon.getMaxU();
float f5 = icon.getMinV();
float f6 = icon.getMaxV();
float f7 = 1.0F;
float f8 = 0.5F;
float f9 = 0.25F;
GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
GL11.glRotatef(-this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
tessellator.startDrawingQuads();
tessellator.setNormal(0.0F, 1.0F, 0.0F);
tessellator.addVertexWithUV(0.0F - f8, 0.0F - f9, 0.0D, f3, f6);
tessellator.addVertexWithUV(f7 - f8, 0.0F - f9, 0.0D, f4, f6);
tessellator.addVertexWithUV(f7 - f8, 1.0F - f9, 0.0D, f4, f5);
tessellator.addVertexWithUV(0.0F - f8, 1.0F - f9, 0.0D, f3, f5);
tessellator.draw();
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
GL11.glPopMatrix();
}
protected ResourceLocation func_110775_a(Entity par1Entity)
{
return this.func_110790_a(par1Entity);
}
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
this.doRenderEntity(par1Entity, par2, par4, par6, par8, par9);
}
@Override
protected ResourceLocation getEntityTexture(Entity par1Entity) {
return TextureMap.locationItemsTexture;
}
}