Examples of prePlant()


Examples of powercrystals.minefactoryreloaded.api.IFactoryPlantable.prePlant()

     
      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);
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.