Porting to 1.6.

This commit is contained in:
MysteriousAges committed 2013-08-25 19:56:55 -07:00
1 parent c5d59a4505
commit f9ceeba358
16 files changed
+131 -95

No files matched your search

@@ -1,24 +1,22 @@
package magicbees.client.render;
import magicbees.main.MagicBees;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.client.FMLClientHandler;
import magicbees.main.CommonProxy;
import magicbees.main.MagicBees;
import net.minecraft.client.particle.EntityFX;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.world.World;
import net.minecraftforge.client.ForgeHooksClient;
/**
* Borrowed from Forestry with some modifications.
*/
public class BeeRenderEffect extends EntityFX
{
public int blendmode = 1;
private static String texture = "/mods/forestry/textures/items/particles/swarm_bee";
private static ResourceLocation texture = new ResourceLocation("Forestry", "textures/items/particles/swarm_bee.png");
public BeeRenderEffect(World world, double x, double y, double z, float motionScaleX, float motionScaleY, float motionScaleZ, int color)
{
@@ -65,14 +63,14 @@ public class BeeRenderEffect extends EntityFX
public void renderParticle(Tessellator tessellator, float f, float f1, float f2, float f3, float f4, float f5)
{
tessellator.draw();
/*tessellator.draw();
GL11.glPushMatrix();
GL11.glDepthMask(false);
GL11.glEnable(3042);
GL11.glBlendFunc(770, blendmode);
FMLClientHandler.instance().getClient().renderEngine.bindTexture(texture);
FMLClientHandler.instance().getClient().renderEngine.func_110577_a(texture);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
@@ -97,8 +95,8 @@ public class BeeRenderEffect extends EntityFX
GL11.glDepthMask(true);
GL11.glPopMatrix();
GL11.glBindTexture(3553 /* GL_TEXTURE_2D *//* GL_TEXTURE_2D */, MagicBees.proxy.getClientInstance().renderEngine.getTexture("/particles.png"));
tessellator.startDrawingQuads();
GL11.glBindTexture(3553, MagicBees.proxy.getClientInstance().renderEngine.func_110577_a(texture));
tessellator.startDrawingQuads();*/
}
}