Package org.spout.vanilla.component.entity.substance.vehicle

Examples of org.spout.vanilla.component.entity.substance.vehicle.Boat


      } else if (facingBlock.getMaterial().equals(VanillaMaterials.AIR) && facingBlock.translate(BlockFace.BOTTOM).getMaterial() instanceof Water) {
        placePos = facingBlock.getPosition().add(.5f, 0f, .5f);
      } else {
        return false;
      }
      Boat boat = ((BoatItem) item.getMaterial()).spawnEntity(placePos);
      block.getWorld().spawnEntity(boat.getOwner());
      slot.addAmount(-1);
      return true;
    } else {
      // Try to shoot the item selected if we can't do anything else with it
      final Random rand = GenericMath.getRandom();
View Full Code Here

TOP

Related Classes of org.spout.vanilla.component.entity.substance.vehicle.Boat

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.