Package powercrystals.minefactoryreloaded.entity

Examples of powercrystals.minefactoryreloaded.entity.EntitySafariNet


      {
        if((ItemSafariNet.isEmpty(ammo) && isCaptureMode(stack)) || (!ItemSafariNet.isEmpty(ammo) && !isCaptureMode(stack)))
        {
          if(!world.isRemote)
          {
            EntitySafariNet esn = new EntitySafariNet(world, player, ammo);
            world.spawnEntityInWorld(esn);
           
            world.playSoundAtEntity(player, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
          }
          player.inventory.setInventorySlotContents(i, null);
View Full Code Here


  public ItemStack dispenseStack(IBlockSource dispenser, ItemStack stack)
  {
    World world = dispenser.getWorld();
    IPosition dispenserPos = BlockDispenser.getIPositionFromBlockSource(dispenser);
    EnumFacing dispenserFacing = BlockDispenser.getFacing(dispenser.getBlockMetadata());
    EntitySafariNet proj = new EntitySafariNet(world, dispenserPos.getX(), dispenserPos.getY(), dispenserPos.getZ(), stack.copy());
    proj.setThrowableHeading(dispenserFacing.getFrontOffsetX(), dispenserFacing.getFrontOffsetY() + 0.1, dispenserFacing.getFrontOffsetZ(), 1.1F, 6.0F);
    world.spawnEntityInWorld(proj);
    stack.splitStack(1);
    return stack;
  }
View Full Code Here

TOP

Related Classes of powercrystals.minefactoryreloaded.entity.EntitySafariNet

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.