Cleanup
This commit is contained in:
@@ -136,77 +136,6 @@ public final class WizardryClientEventHandler {
|
||||
|
||||
@SubscribeEvent
|
||||
public static void onRenderLivingEvent(RenderLivingEvent.Post<EntityLivingBase> event){
|
||||
/* // Frost effect if(event.entity.isPotionActive(Wizardry.frost)){
|
||||
*
|
||||
* GlStateManager.pushMatrix(); GL11.glDisable(GL11.GL_TEXTURE_2D); GlStateManager.enableBlend();
|
||||
* GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
|
||||
*
|
||||
* float someScalingFactor = 0.0625f;
|
||||
*
|
||||
* float yaw = event.entity.prevRotationYaw;
|
||||
*
|
||||
* //int brightness = event.entity.getBrightnessForRender(0);
|
||||
*
|
||||
* //int j = brightness % 65536; //int k = brightness / 65536;
|
||||
* //OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j / 1.0F, (float)k / 1.0F);
|
||||
* //GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
*
|
||||
*
|
||||
* GlStateManager.translate(event.x, event.y, event.z);
|
||||
*
|
||||
* GlStateManager.rotate(-yaw + 180, 0F, 1F, 0F);
|
||||
*
|
||||
* Render render = renderManager.getEntityRenderObject(event.entity);
|
||||
*
|
||||
* RenderLiving renderliving = event.renderer;
|
||||
*
|
||||
* // Reflection
|
||||
*
|
||||
* try {
|
||||
*
|
||||
* Timer timer = ReflectionHelper.getPrivateValue(Minecraft.class, Minecraft.getMinecraft(), "timer");
|
||||
*
|
||||
* // Chooses the appropriate zombie model, normal or villager // Fixed by moving before the model fields are accessed
|
||||
* if(render instanceof RenderZombie && event.entity instanceof EntityZombie){ // The second argument is never used...
|
||||
* ReflectionHelper.findMethod(RenderZombie.class, (RenderZombie)render, new String[]{"func_82427_a"},
|
||||
* EntityZombie.class) .invoke(renderliving, (EntityZombie)event.entity); }
|
||||
*
|
||||
* // Turns out that java automatically infers the type parameter T in this method from the type // I am assigning the
|
||||
* returned value to. Neat! ModelBase mainModel = ReflectionHelper.getPrivateValue(RenderLiving.class, renderliving,
|
||||
* "mainModel");
|
||||
*
|
||||
* mainModel.isRiding = event.entity.isRiding(); mainModel.isChild = event.entity.isChild();
|
||||
*
|
||||
* GlStateManager.enableRescaleNormal(); GlStateManager.scale(-1.0F, -1.0F, 1.0F);
|
||||
*
|
||||
* // The second argument is never used... ReflectionHelper.findMethod(RenderLiving.class, renderliving, new
|
||||
* String[]{"preRenderCallback"}, EntityLivingBase.class, float.class) .invoke(renderliving, event.entity,
|
||||
* someScalingFactor);
|
||||
*
|
||||
* // Why is this -1.5f? No idea! GlStateManager.translate(0, -1.5f, 0);
|
||||
*
|
||||
* float f6 = event.entity.prevLimbSwingAmount + (event.entity.limbSwingAmount - event.entity.prevLimbSwingAmount) *
|
||||
* timer.renderPartialTicks; float f7 = event.entity.limbSwing - event.entity.limbSwingAmount * (1.0F -
|
||||
* timer.renderPartialTicks);
|
||||
*
|
||||
* if (event.entity.isChild()) { f7 *= 3.0F; }
|
||||
*
|
||||
* if (f6 > 1.0F) { f6 = 1.0F; }
|
||||
*
|
||||
* mainModel.setLivingAnimations(event.entity, f7, f6, timer.renderPartialTicks);
|
||||
*
|
||||
* GlStateManager.enableAlpha(); GlStateManager.color(0.5f, 0.7f, 1, 0.5f);
|
||||
*
|
||||
* mainModel.render(event.entity, f7, f6, 0, 0, 0, someScalingFactor);
|
||||
*
|
||||
* GL11.glDepthMask(true);
|
||||
*
|
||||
* // 'Pokemon' exception handling... Because why not?! } catch (Exception e) {
|
||||
* System.err.println("Something went very wrong! Error while rendering frost effect:"); e.printStackTrace(); }
|
||||
*
|
||||
* GlStateManager.disableAlpha(); GlStateManager.disableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA,
|
||||
* GL11.GL_ONE_MINUS_SRC_ALPHA); GlStateManager.disableRescaleNormal(); GL11.glEnable(GL11.GL_TEXTURE_2D);
|
||||
* GlStateManager.popMatrix(); } */
|
||||
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
WizardData properties = WizardData.get(mc.player);
|
||||
|
||||
Reference in New Issue
Block a user