
package io.github.satoshinm.WebSandboxMC.bukkit;

import io.github.satoshinm.WebSandboxMC.bridge.BlockBridge;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.block.SignChangeEvent;

public class BlockListener implements Listener {

    public BlockBridge blockBridge;

    public BlockListener(BlockBridge blockBridge) {
        this.blockBridge = blockBridge;
    }

    @EventHandler(ignoreCancelled = true)
    public void onBlockBreak(BlockBreakEvent event) {
        Block block = event.getBlock();
        Location location = block.getLocation();
        blockBridge.notifyBlockUpdate(location, Material.AIR, null);
    }

    @EventHandler(ignoreCancelled = true)
    @SuppressWarnings("deprecation") // Block#getData
    public void onBlockPlace(BlockPlaceEvent event) {
        Block block = event.getBlock();

        blockBridge.notifyBlockUpdate(block.getLocation(), block.getType(), block.getState());
    }
    @EventHandler(ignoreCancelled = true)
    @SuppressWarnings("deprecation") // Block#getData
    public void onSignChange(SignChangeEvent event) {
        Block block = event.getBlock();

        blockBridge.notifySignChange(block.getLocation(), block.getType(), block.getState(), event.getLines());
    }

    // TODO: BlockBurnEvent
    // TODO: BlockExplodeEvent
    // TODO: BlockFadeEvent
    // TODO: BlockFromToEvent
    // TODO: BlockFormEvent
    // TODO: BlockGrowEvent
    // TODO: BlockIgniteEvent
    // TODO: BlockMultiPlaceEvent
    // TODO: BlockPhysicsEvent
    // TODO: BlockPiston*Event
    // TODO: BlockRedstoneEvent
    // TODO: BlockSpreadEvent
    // TODO: CauldronLevelChangeEvent
    // TODO: FurnaceBurnEvent (change light levels)
    // TODO: LeavesDecayEvent

}

@@ -898,62 +898,8 @@
 ue)%0A
-    @SuppressWarnings(%22deprecation%22) // Block#getData%0A
     
@@ -1136,62 +1136,8 @@
 ue)%0A
-    @SuppressWarnings(%22deprecation%22) // Block#getData%0A
     

Remove BlockBridge @SuppressWarnings