Package net.minecraft.item

Examples of net.minecraft.item.ItemStack.copy()


    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(FluidContainerRegistry.isEmptyContainer(slotStack) || FluidContainerRegistry.isFilledContainer(slotStack))
      {
        if(slotID != 0 && slotID != 1)
        {
View Full Code Here


    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(slotID < 27)
      {
        if(!mergeItemStack(slotStack, 27, inventorySlots.size(), true))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(isOutputSlot(slotID))
      {
        if(!mergeItemStack(slotStack, tileEntity.inventory.length, inventorySlots.size(), true))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(slotID == 2)
      {
        if(!mergeItemStack(slotStack, 5, inventorySlots.size(), true))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(slotID >= 0 && slotID <= 26)
      {
        if(!mergeItemStack(slotStack, 27, inventorySlots.size(), false))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(ChargeUtils.canBeDischarged(slotStack))
      {
        if(slotID != 54)
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(ChargeUtils.canBeDischarged(slotStack))
      {
        if(slotID != 2)
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(slotID != 0 && slotID != 1 && slotID != 2 && slotID != 3 && slotID != 4)
      {
        if(InfuseRegistry.getObject(slotStack) != null && (tileEntity.type == null || tileEntity.type == InfuseRegistry.getObject(slotStack).type))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(slotID == 1)
      {
        if(!mergeItemStack(slotStack, 4, inventorySlots.size(), true))
        {
View Full Code Here

    Slot currentSlot = (Slot)inventorySlots.get(slotID);

    if(currentSlot != null && currentSlot.getHasStack())
    {
      ItemStack slotStack = currentSlot.getStack();
      stack = slotStack.copy();

      if(RecipeHandler.getItemToGasOutput(slotStack, false, Recipe.CHEMICAL_OXIDIZER.get()) != null)
      {
        if(slotID != 0)
        {
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.