Package net.minecraft.server

Examples of net.minecraft.server.Item


   * @param itemType of the item
   * @param def to return for invalid items
   * @return max stacking size
   */
  public static int getMaxSize(Material itemType, int def) {
    Item item = CommonNMS.getItem(itemType);
    return item == null ? def : item.getMaxStackSize();
  }
View Full Code Here

TOP

Related Classes of net.minecraft.server.Item

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.