Package calclavia.api.mffs.EventForceManipulate

Examples of calclavia.api.mffs.EventForceManipulate.EventPreForceManipulate


      // 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);

        if (!evt.isCanceled())
        {
          int blockID = this.position.getBlockID(this.world);
          int blockMetadata = this.position.getBlockMetadata(this.world);

          MovementUtility.setBlockSneaky(this.world, this.position, 0, 0, null);
View Full Code Here

TOP

Related Classes of calclavia.api.mffs.EventForceManipulate.EventPreForceManipulate

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.