Package me.ashtheking.dragons.world

Examples of me.ashtheking.dragons.world.Location


        && worldObj.getCollidingBoundingBoxes(this, boundingBox).size() == 0
        && !worldObj.isAnyLiquid(boundingBox) && checkSpawn();
  }

  private boolean checkSpawn() {
    Location loc = new Location((int) posX, (int) posY, (int) posZ);
    if (mod_Dragon.holdManager == null)
      mod_Dragon.holdManager = new HoldManager(worldObj);
    Hold h = mod_Dragon.holdManager.getHold(loc);
    int x = 5;
    if (h != null) {
View Full Code Here


  public void updateTask()
  {

   
    loc = new Location((int) wanderer.posX, (int) wanderer.posY,
        (int) wanderer.posZ);

    hold = mod_Dragon.holdManager.getHold(loc);
    if (hold != null) {
      holdLoc = new Location((int) xTarget, (int) yTarget, (int) zTarget);
      xTarget = hold.center.x;
      yTarget = hold.center.y;
      zTarget = hold.center.z;
     
      double distance = loc.distanceTo(holdLoc);
View Full Code Here

  }

  public void update() {
    EntityPlayer p = ModLoader.getMinecraftInstance().thePlayer;
    World world = p.worldObj;
    Location loc = new Location((int) p.posX, (int) p.posY, (int) p.posZ);
    if (mod_Dragon.holdManager == null || mod_Dragon.holdManager.world != world)

      mod_Dragon.holdManager = new HoldManager(world);
    if (world != null && mod_Dragon.holdManager.world != null) {
      Hold h = mod_Dragon.holdManager.getHold(loc);
View Full Code Here

TOP

Related Classes of me.ashtheking.dragons.world.Location

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.