Package powercrystals.minefactoryreloaded.api

Examples of powercrystals.minefactoryreloaded.api.MobDrop


    MFRRegistry.registerGrinderBlacklist(EntityWither.class);
    MFRRegistry.registerGrinderBlacklist(EntityVillager.class);
   
    MFRRegistry.registerGrindable(new GrindableStandard(EntityChicken.class, new MobDrop[]
        {
      new MobDrop(30, null),
      new MobDrop(10, new ItemStack(Item.egg))
        }, false));
    MFRRegistry.registerGrindable(new GrindableStandard(EntityOcelot.class, new MobDrop[]
        {
      new MobDrop(10, new ItemStack(Item.fishRaw)),
      new MobDrop(10, new ItemStack(Item.silk))
        }));
    MFRRegistry.registerGrindable(new GrindableStandard(EntityWolf.class, new ItemStack(Item.bone)));
    MFRRegistry.registerGrindable(new GrindableZombiePigman());
    MFRRegistry.registerGrindable(new GrindableSlime(EntitySlime.class, new ItemStack(Item.slimeBall), 1));
    MFRRegistry.registerGrindable(new GrindableSlime(EntityPinkSlime.class, new ItemStack(MineFactoryReloadedCore.pinkSlimeballItem), 1));
View Full Code Here


    {
      ItemStack battleSign = new ItemStack(Item.sign);
      battleSign.addEnchantment(Enchantment.sharpness, 4);
      battleSign.addEnchantment(Enchantment.knockback, 2);
      battleSign.addEnchantment(Enchantment.fireAspect, 1);
      drops.add(new MobDrop(10, battleSign));
    }

    return drops;
  }
View Full Code Here

  public GrindableStandard(Class<?> entityToGrind, ItemStack dropStack, boolean entityProcessed)
  {
    _grindableClass = entityToGrind;
    _drops = new ArrayList<MobDrop>();
    _drops.add(new MobDrop(10, dropStack));
    _entityProcessed = entityProcessed;
  }
View Full Code Here

  public GrindableSlime(Class<?> slime, ItemStack[] drops, int dropSize)
  {
    grindable = slime;
    ArrayList<MobDrop> q = new ArrayList<MobDrop>();
    for (ItemStack drop : drops)
      q.add(new MobDrop(10, drop));
    this.drops = q;
    this.dropSize = dropSize;
  }
View Full Code Here

    this.dropSize = dropSize;
  }

  public GrindableSlime(Class<?> slime, ItemStack drop, int dropSize)
  {
    this(slime, new MobDrop[]{new MobDrop(10, drop)}, dropSize);
  }
View Full Code Here

  @Override
  public List<MobDrop> grind(World world, EntityLiving entity, Random random)
  {
    List<MobDrop> items = new ArrayList<MobDrop>();

    items.add(new MobDrop(80, new ItemStack(_legItem, 1, 0)));
    items.add(new MobDrop(20, new ItemStack(_featherItem, random.nextInt(3), 0)));

    return items;
  }
View Full Code Here

      while(EnumTag.get(wispType) == EnumTag.UNKNOWN)
      {
        wispType = ((byte)random.nextInt(64));
      }
      drops.add(new MobDrop(10, new ItemStack(_wispEssence.itemID, 1, wispType)));
    }
    catch(Exception x)
    {
      x.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.api.MobDrop

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.