Examples of copyLocationAndAnglesFrom()


Examples of net.minecraft.entity.Entity.copyLocationAndAnglesFrom()

        if (entity != null) {
          entity.worldObj = (Minecraft.getMinecraft() != null) ? Minecraft.getMinecraft().theWorld : null;
          if (entity.worldObj != null) {
            Render renderer = RenderManager.instance.getEntityRenderObject(entity);
            entity.setWorld(eItem.worldObj);
            entity.copyLocationAndAnglesFrom(eItem);
            if (renderer != null && renderer.getFontRendererFromRenderManager() != null) {
              GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
              //if (renderWithLighting) RenderUtils.enableLightmap();
              renderer.doRender(entity, 0, 0, 0, 0, 0);
              GL11.glPopAttrib();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.