Package powercrystals.minefactoryreloaded.api

Examples of powercrystals.minefactoryreloaded.api.IFactoryPlantable


     
      if(!MFRRegistry.getPlantables().containsKey(new Integer(availableStack.itemID)))
      {
        continue;
      }
      IFactoryPlantable plantable = MFRRegistry.getPlantables().get(new Integer(availableStack.itemID));
     
      if(!plantable.canBePlantedHere(worldObj, bp.x, bp.y, bp.z, availableStack))
      {
        continue;
      }
      plantable.prePlant(worldObj, bp.x, bp.y, bp.z, availableStack);
      worldObj.setBlock(bp.x, bp.y, bp.z,
          plantable.getPlantedBlockId(worldObj, bp.x, bp.y, bp.z, availableStack),
          plantable.getPlantedBlockMetadata(worldObj, bp.x, bp.y, bp.z, availableStack), 3);
      plantable.postPlant(worldObj, bp.x, bp.y, bp.z, availableStack);
      decrStackSize(stackIndex, 1);
      return true;
    }
   
    setIdleTicks(getIdleTicksMax());
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.api.IFactoryPlantable

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.