Examples of onNeighborBlockChange()


Examples of appeng.tile.misc.TilePaint.onNeighborBlockChange()

  public void onNeighborBlockChange(World w, int x, int y, int z, Block junk)
  {
    TilePaint tp = getTileEntity( w, x, y, z );

    if ( tp != null )
      tp.onNeighborBlockChange();
  }

  @Override
  public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
  {
View Full Code Here

Examples of appeng.tile.spatial.TileSpatialPylon.onNeighborBlockChange()

  @Override
  public void onNeighborBlockChange(World w, int x, int y, int z, Block junk)
  {
    TileSpatialPylon tsp = getTileEntity( w, x, y, z );
    if ( tsp != null )
      tsp.onNeighborBlockChange();
  }

  @Override
  public int getLightValue(IBlockAccess w, int x, int y, int z)
  {
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

  {
    for (ForgeDirection currentSide : ForgeDirection.values())
    {
      Block neighbor = Block.blocksList[worldObj.getBlockId(xCoord + currentSide.offsetX, yCoord + currentSide.offsetY, zCoord + currentSide.offsetZ)];
      if (neighbor != null)
        neighbor.onNeighborBlockChange(worldObj, xCoord + currentSide.offsetX, yCoord + currentSide.offsetY, zCoord + currentSide.offsetZ, BlockEnum.FLUIDLEVELEMITTER.getBlockInstance().blockID);
    }
    PacketDispatcher.sendPacketToAllPlayers(getDescriptionPacket());
    worldObj.updateAllLightTypes(xCoord, yCoord, zCoord);
  }
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

        return !world.isRemote;

      ForgeDirection mySide = ForgeDirection.getOrientation( side );
      if ( b.rotateBlock( world, x, y, z, mySide ) )
      {
        b.onNeighborBlockChange( world, x, y, z, Platform.air );
        player.swingItem();
        return !world.isRemote;
      }
    }
    return false;
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

        TileEntity te = w.getTileEntity( x, y, z );
        if ( !(te instanceof IGridHost) )
        {
          if ( b.rotateBlock( w, x, y, z, ForgeDirection.getOrientation( side ) ) )
          {
            b.onNeighborBlockChange( w, x, y, z, Platform.air );
            p.swingItem();
            return !w.isRemote;
          }
        }
      }
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

    @Override
    public void visit(int x, int y, int z)
    {
      Block blk = dst.getBlock( x, y, z );
      blk.onNeighborBlockChange( dst, x, y, z, Platform.air );
    }
  }

  static class WrapInMatrixFrame implements ISpatialVisitor
  {
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

        ItemStack trackStock = getStackInSlot(slotStock);
        if (trackStock != null)
            if (RailTools.placeRailAt(trackStock, worldObj, x, y, z)) {
                worldObj.setBlockMetadataWithNotify(x, y, z, meta, 0x02);
                Block block = worldObj.getBlock(x, y, z);
                block.onNeighborBlockChange(worldObj, x, y, z, block);
                worldObj.markBlockForUpdate(x, y, z);
                decrStackSize(slotStock, 1);
                blink();
            }
    }
View Full Code Here

Examples of net.minecraft.block.Block.onNeighborBlockChange()

      int var5 = this.getBlockIdWithoutLoad(x, y, z);
      Block var6 = var5 < 1 ? null : Block.blocksList[var5];

      if (var6 != null) {
        try {
          var6.onNeighborBlockChange(this, x, y, z, par4);
        } catch (Throwable t) {
          Log.severe("Exception while updating block neighbours " + Log.pos(this, x, y, z), t);
        }
      }
    }
View Full Code Here

Examples of pneumaticCraft.common.tileentity.TileEntityPressureTube.onNeighborBlockChange()

    public void onNeighborBlockChange(World world, int x, int y, int z, Block block){
        super.onNeighborBlockChange(world, x, y, z, block);
        TileEntity te = world.getTileEntity(x, y, z);
        if(te != null && te instanceof TileEntityPressureTube) {
            TileEntityPressureTube tePt = (TileEntityPressureTube)te;
            tePt.onNeighborBlockChange();
        }
    }

    @Override
    @SideOnly(Side.CLIENT)
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.