Package net.minecraft.entity

Examples of net.minecraft.entity.EntityHanging


          entity.lastTickPosY = entity.prevPosY = entity.posY = link.y;
          entity.lastTickPosZ = entity.prevPosZ = entity.posZ = link.z;

          if ( entity instanceof EntityHanging )
          {
            EntityHanging h = (EntityHanging) entity;
            h.field_146063_b += link.xOff;
            h.field_146064_c += link.yOff;
            h.field_146062_d += link.zOff;
          }
View Full Code Here


    for (Object o : context.world().loadedEntityList) {
      Entity e = (Entity) o;

      if (e instanceof EntityHanging) {
        EntityHanging h = (EntityHanging) e;
        Position existingPositon = new Position(h.field_146063_b, h.field_146064_c, h.field_146062_d);

        if (existingPositon.isClose(newPosition, 0.1F) && dir == ((EntityHanging) e).hangingDirection) {
          return true;
        }
View Full Code Here

TOP

Related Classes of net.minecraft.entity.EntityHanging

Copyright © 2018 www.massapicom. 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.