Package powercrystals.minefactoryreloaded.api

Examples of powercrystals.minefactoryreloaded.api.IFactoryGrindable2


      boolean processMob = false;
      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

Related Classes of powercrystals.minefactoryreloaded.api.IFactoryGrindable2

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.