Package org.getspout.spoutapi.inventory

Examples of org.getspout.spoutapi.inventory.SpoutItemStack


  public ItemStack readItemStack(ItemStack item) {
    int id = readInt();
    short dura = readShort();
    short amt = readShort();
    return new SpoutItemStack(id, amt, dura, item.getItemMeta());
  }
View Full Code Here


    this.customId = item.getCustomId();
    this.rotate = rotate;
    this.mirroredRotate = mirroredRotate;
    this.fullRotate = fullRotate;
    MaterialData.addCustomBlock(this);
    this.setItemDrop(new SpoutItemStack(this, 1));

    for (SpoutPlayer player : Spout.getServer().getOnlinePlayers()) {
      player.sendPacket(this);
    }
  }
View Full Code Here

  @Override
  public CustomBlock setItemDrop(ItemStack item) {
    if (item instanceof SpoutItemStack) {
      drop = (SpoutItemStack) item;
    } else {
      drop = new SpoutItemStack(drop);
    }
    return this;
  }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.inventory.SpoutItemStack

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.