Examples of VectorWorld


Examples of universalelectricity.api.vector.VectorWorld

    if (itemStack.stackTagCompound == null || !itemStack.getTagCompound().hasKey("link"))
    {
      return null;
    }

    return new VectorWorld(itemStack.getTagCompound().getCompoundTag("link"));
  }
View Full Code Here

Examples of universalelectricity.api.vector.VectorWorld

      for (ItemStack itemStack : this.remotesCached)
      {
        if (!temporaryRemoteBlacklist.contains(itemStack) && new Vector3(evt.beforeX, evt.beforeY, evt.beforeZ).equals(this.getLink(itemStack)))
        {
          // TODO: Change remote to locate in other world?
          this.setLink(itemStack, new VectorWorld(evt.world, evt.afterX, evt.afterY, evt.afterZ));
          temporaryRemoteBlacklist.add(itemStack);
        }
      }
    }
  }
View Full Code Here

Examples of universalelectricity.api.vector.VectorWorld

  protected void onEvent()
  {
    if (!this.world.isRemote)
    {
      // Do a final check before actually moving.
      if (((TileForceManipulator) this.handler).canMove(new VectorWorld(world, position), newPosition))
      {
        TileEntity tileEntity = this.position.getTileEntity(this.world);

        EventPreForceManipulate evt = new EventPreForceManipulate(this.world, this.position.intX(), this.position.intY(), this.position.intZ(), this.newPosition.intX(), this.newPosition.intY(), this.newPosition.intZ());
        MinecraftForge.EVENT_BUS.post(evt);
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.