Examples of doesContainerItemLeaveCraftingGrid()


Examples of net.minecraft.item.Item.doesContainerItemLeaveCraftingGrid()

  public void craft(ItemStack input, ContainerInfo containerInfo) {
    if (input == null) return;

    Item item = input.getItem();
    ItemStack containerItem = item.getContainerItem(input.copy());
    boolean doesLeaveCrafting = item.doesContainerItemLeaveCraftingGrid(input);
    containerInfo.set(containerItem, doesLeaveCrafting);
   
    input.stackSize -= getAmount();
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.