Package org.spoutcraft.api.material.item

Examples of org.spoutcraft.api.material.item.GenericCustomItem


   * @param addon creating the block
   * @param name of the block
   * @param isOpaque true if you want the block solid
   */
  public GenericCustomBlock(String addon, String name, boolean isOpaque) {
    this(addon, name, isOpaque, new GenericCustomItem(addon, name));
  }
View Full Code Here


    fullName = addonName + "." + getName();
    opaque = input.readBoolean();
    setFriction(input.readFloat());
    setHardness(input.readFloat());
    setLightLevel(input.readInt());
    item = new GenericCustomItem(addon, name, customId);
    MaterialData.addCustomBlock(this);
    this.setItemDrop(new ItemStack(this, 1));
    this.blockId = isOpaque() ? 1 :20;
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.material.item.GenericCustomItem

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.