예제 #1
0
  private void b(TileEntity tileentity) {
    if (tileentity != null) {
      // CanaryMod: SignShowHook
      if (tileentity instanceof TileEntitySign) {
        SignShowHook hook =
            new SignShowHook(this.getPlayer(), ((TileEntitySign) tileentity).getCanarySign());
        Canary.hooks().callHook(hook);
      }
      //
      Packet packet = tileentity.m();

      if (packet != null) {
        this.a.b(packet);
      }
    }
  }
예제 #2
0
  /** Update which block ID the furnace is using depending on whether or not it is burning */
  public static void a(boolean par0, World par1World, int par2, int par3, int par4) {

    int i = par1World.getData(par2, par3, par4);
    TileEntity tileentity = par1World.getTileEntity(par2, par3, par4);
    c = true;

    if (par0) {
      par1World.setTypeId(par2, par3, par4, MhoDilandau.BlockIronFurnaceActive.id);
    } else {
      par1World.setTypeId(par2, par3, par4, MhoDilandau.BlockIronFurnaceIdle.id);
    }

    c = false;
    par1World.setData(par2, par3, par4, i);

    if (tileentity != null) {
      tileentity.m();
      par1World.setTileEntity(par2, par3, par4, tileentity);
    }
  }