Package forestry.api.apiculture

Examples of forestry.api.apiculture.IBee.writeToNBT()


      IBee imprint = getSelectedBee();
      if (imprint == null)
        return;

      NBTTagCompound nbttagcompound = new NBTTagCompound();
      imprint.writeToNBT(nbttagcompound);
      inventoryStacks[specimenSlot].setTagCompound(nbttagcompound);

      inventoryStacks[imprintedSlot] = inventoryStacks[specimenSlot];
      inventoryStacks[specimenSlot] = null;
    }
View Full Code Here


          PluginApiculture.beeInterface.getBreedingTracker(player.worldObj, player.getGameProfile()).registerSpecies(bee.getGenome().getPrimary());
          PluginApiculture.beeInterface.getBreedingTracker(player.worldObj, player.getGameProfile()).registerSpecies(bee.getGenome().getSecondary());
        }

        NBTTagCompound nbttagcompound = new NBTTagCompound();
        bee.writeToNBT(nbttagcompound);
        getStackInSlot(SLOT_SPECIMEN).setTagCompound(nbttagcompound);

        // Decrease energy
        decrStackSize(SLOT_ENERGY, 1);
      }
View Full Code Here

    // Age the queen
    queen.age(housing.getWorld(), housing.getLifespanModifier(queen.getGenome(), queen.getMate(), 0f));

    // Write the changed queen back into the item stack.
    NBTTagCompound nbttagcompound = new NBTTagCompound();
    queen.writeToNBT(nbttagcompound);
    housing.getQueen().setTagCompound(nbttagcompound);

    return;
  }
View Full Code Here

    case PRINCESS:
      beeItem = ForestryItem.beePrincessGE.getItemStack();
      break;
    }
    NBTTagCompound nbtTagCompound = new NBTTagCompound();
    bee.writeToNBT(nbtTagCompound);
    beeItem.setTagCompound(nbtTagCompound);

    return beeItem;
  }
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.