Examples of blockExists()


Examples of net.minecraft.world.World.blockExists()

            }

            TileEntity tile = (TileEntity) conductor;
            World world = tile.getWorldObj();
            //Remove any conductors in unloaded chunks
            if (tile.isInvalid() || world == null || !world.blockExists(tile.xCoord, tile.yCoord, tile.zCoord))
            {
                it.remove();
                continue;
            }
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

    public boolean blockExists()
    {
      if (theServer == null) return false;
       World world = theServer.worldServerForDimension(this.dim);
       if (world == null) return false;
        return world.blockExists(this.x, this.y, this.z);
    }

    public void setSideDone(int side)
    {
        this.sideDone[side] = true;
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

        new Vect(housing.getXCoord() - 1, housing.getYCoord(), housing.getZCoord()),
        new Vect(housing.getXCoord(), housing.getYCoord(), housing.getZCoord() + 1),
        new Vect(housing.getXCoord(), housing.getYCoord(), housing.getZCoord() - 1) };

    for (Vect target : possibleTargets) {
      if (!world.blockExists(target.x, target.y, target.z))
        continue;

      TileEntity entity = world.getTileEntity(target.x, target.y, target.z);
      if (entity == null)
        continue;
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

        int x = data.readInt();
        int y = data.readInt();
        int z = data.readInt();
        short id = data.readShort();

        if (id < 0 || y < 0 || !world.blockExists(x, y, z)) {
//            Game.logDebug("Receive Tile Packet: Block not found");
            return;
        }

        TileEntity te = world.getTileEntity(x, y, z);
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

    }

    private Status testForTrack(int x, int y, int z) {
        World world = tile.getWorldObj();
        for (int jj = -2; jj < 4; jj++) {
            if (!world.blockExists(x, y - jj, z))
                return Status.UNKNOWN;
            if (TrackTools.isRailBlockAt(world, x, y - jj, z)) {
                trackLocation = new WorldCoordinate(world.provider.dimensionId, x, y - jj, z);
                return Status.VALID;
            }
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

  @Override
  public void readData(ByteBuf data) {
    super.readData(data);

    World world = CoreProxy.proxy.getClientWorld();
    if (!world.blockExists(posX, posY, posZ)) {
      return;
    }

    TileEntity entity = world.getTileEntity(posX, posY, posZ);
    if (!(entity instanceof TileGenericPipe)) {
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

   * @param packet
   */
  private void onPipeTravelerUpdate(EntityPlayer player, PacketPipeTransportTraveler packet) {
    World world = player.worldObj;

    if (!world.blockExists(packet.posX, packet.posY, packet.posZ)) {
      return;
    }

    TileEntity entity = world.getTileEntity(packet.posX, packet.posY, packet.posZ);
    if (!(entity instanceof TileGenericPipe)) {
View Full Code Here

Examples of net.minecraft.world.World.blockExists()

   *
   * @param packetPower
   */
  private void onPacketPower(EntityPlayer player, PacketPowerUpdate packetPower) {
    World world = player.worldObj;
    if (!world.blockExists(packetPower.posX, packetPower.posY, packetPower.posZ)) {
      return;
    }

    TileEntity entity = world.getTileEntity(packetPower.posX, packetPower.posY, packetPower.posZ);
    if (!(entity instanceof TileGenericPipe)) {
View Full Code Here

Examples of net.minecraft.world.WorldServer.blockExists()

    public static void processUpdateSign(NetHandlerPlayServer net, C12PacketUpdateSign p_147343_1_)
    {
        net.playerEntity.func_143004_u();
        WorldServer worldserver = net.serverController.worldServerForDimension(net.playerEntity.dimension);

        if (worldserver.blockExists(p_147343_1_.func_149588_c(), p_147343_1_.func_149586_d(), p_147343_1_.func_149585_e()))
        {
            TileEntity tileentity = worldserver.getTileEntity(p_147343_1_.func_149588_c(), p_147343_1_.func_149586_d(), p_147343_1_.func_149585_e());

            if (tileentity instanceof TileEntitySign)
            {
View Full Code Here

Examples of net.minecraft.world.WorldServer.blockExists()

        boolean ignore = mat == Material.air || mat == Material.lava || mat == Material.water || mat.isLiquid() || blk == Blocks.bedrock
            || blk == Blocks.end_portal || blk == Blocks.end_portal_frame || blk == Blocks.command_block;

        if ( !ignore )
        {
          if ( !w.isAirBlock( x, y, z ) && w.blockExists( x, y, z ) && w.canMineBlock( Platform.getPlayer( w ), x, y, z ) )
          {
            float hardness = blk.getBlockHardness( w, x, y, z );
            if ( hardness >= 0.0 )
            {
              ItemStack[] out = Platform.getBlockDrops( w, x, y, z );
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.