Examples of grind()


Examples of powercrystals.minefactoryreloaded.api.IFactoryGrindable2.grind()

      processEntity:
      {
        if(MFRRegistry.getGrindables27().containsKey(e.getClass()))
        {
          IFactoryGrindable2 r = MFRRegistry.getGrindables27().get(e.getClass());
          List<MobDrop> drops = r.grind(e.worldObj, e, getRandom());
          if(drops != null && drops.size() > 0 && WeightedRandom.getTotalWeight(drops) > 0)
          {
            ItemStack drop = ((MobDrop)WeightedRandom.getRandomItem(_rand, drops)).getStack();
            doDrop(drop);
          }
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.