Package thaumic.tinkerer.common.block.tile

Examples of thaumic.tinkerer.common.block.tile.TileMobMagnet


  }

  @Override
  public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) {
    TileMagnet magnet = (TileMagnet) par1World.getTileEntity(par2, par3, par4);
    TileMobMagnet mobMagnet = magnet instanceof TileMobMagnet ? (TileMobMagnet) magnet : null;

    if (mobMagnet != null) {
      for (int j1 = 0; j1 < mobMagnet.getSizeInventory(); ++j1) {
        ItemStack itemstack = mobMagnet.getStackInSlot(j1);

        if (itemstack != null) {
          float f = random.nextFloat() * 0.8F + 0.1F;
          float f1 = random.nextFloat() * 0.8F + 0.1F;
          EntityItem entityitem;
View Full Code Here


    return false;
  }

  @Override
  public TileEntity createNewTileEntity(World world, int metadata) {
    return (metadata & 2) == 2 ? new TileMobMagnet() : new TileMagnet();
  }
View Full Code Here

    if (isPulling)
      currenttip.add(StatCollector.translateToLocal("ttwaila.pullingMode"));
    else
      currenttip.add(StatCollector.translateToLocal("ttwaila.pushingMode"));
    if (mobMagnet) {
      TileMobMagnet tileMob = (TileMobMagnet) tileMagnet;
      if (tileMob.getStackInSlot(0) == null) {
        if (isPulling)
          if (tileMob.adult)
            currenttip.add(StatCollector.translateToLocal("ttwaila.pullingAdult"));
          else
            currenttip.add(StatCollector.translateToLocal("ttwaila.pullingChild"));
        else if (tileMob.adult)
          currenttip.add(StatCollector.translateToLocal("ttwaila.pushingAdult"));
        else
          currenttip.add(StatCollector.translateToLocal("ttwaila.pushingChild"));
      } else {
        String name = ItemSoulMould.getPatternName(tileMob.getStackInSlot(0));
        name = StatCollector.translateToLocal("entity." + name + ".name");
        if (isPulling)
          if (tileMob.adult)
            currenttip.add(StatCollector.translateToLocalFormatted("ttwaila.pullingAdultType", name));
          else
View Full Code Here

TOP

Related Classes of thaumic.tinkerer.common.block.tile.TileMobMagnet

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.