Package org.spout.vanilla.component.block.material

Examples of org.spout.vanilla.component.block.material.Dispenser


  }

  @Override
  public void onUpdate(BlockMaterial oldMaterial, Block block) {
    super.onUpdate(oldMaterial, block);
    Dispenser dispenser = block.get(Dispenser.class);
    if (!dispenser.isPowered() && this.isReceivingPower(block)) {
      shootItem(block, dispenser.getInventory().getFirstUsedSlot());
    }
    dispenser.setPowered(this.isReceivingPower(block));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.component.block.material.Dispenser

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.