src/main/java/codes/biscuit/skyblockaddons/listeners/PlayerListener.java
/**
     * This blocks interaction with Ember Rods on your island, to avoid blowing up chests, and placing enchanted items
     * such as enchanted lava buckets.
     */
This blocks interaction with Ember Rods on your island, to avoid blowing up chests, and placing enchanted items
such as enchanted lava buckets.
This blocks interaction with Ember Rods on your island to avoid blowing up chests and placing enchanted items such as enchanted lava buckets .
@SubscribeEvent()
    public void onInteract(PlayerInteractEvent e) {
        Minecraft mc = Minecraft.getMinecraft();
        ItemStack heldItem = e.entityPlayer.getHeldItem();
        if (main.getUtils().isOnSkyblock() && e.entityPlayer == mc.thePlayer && heldItem != null) {
            if (heldItem.getItem().equals(Items.fishing_rod) 
                    && (e.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK || e.action == PlayerInteractEvent.Action.RIGHT_CLICK_AIR)) {
                if (main.getConfigValues().isEnabled(Feature.FISHING_SOUND_INDICATOR)) {
                    oldBobberIsInWater = false;
                    lastBobberEnteredWater = Long.MAX_VALUE;
                    oldBobberPosY = 0;
                }
                if (main.getConfigValues().isEnabled(Feature.SHOW_ITEM_COOLDOWNS) && mc.thePlayer.fishEntity != null) {
                    CooldownManager.put(mc.thePlayer.getHeldItem());
                }
            } else if (main.getConfigValues().isEnabled(Feature.AVOID_PLACING_ENCHANTED_ITEMS) && EnchantedItemBlacklist.shouldBlockUsage(heldItem, e.action)) {
                e.setCanceled(true);
            }
        }
    }
@ SubscribeEvent ( ) public void onInteract ( PlayerInteractEvent e ) { Minecraft mc = Minecraft . getMinecraft ( ) ; ItemStack heldItem = e . entityPlayer . getHeldItem ( ) ; if ( main . getUtils ( ) . isOnSkyblock ( ) && e . entityPlayer == mc . thePlayer && heldItem != null ) { if ( heldItem . getItem ( ) . equals ( Items . fishing_rod ) && ( e . action == PlayerInteractEvent . Action . RIGHT_CLICK_BLOCK || e . action == PlayerInteractEvent . Action . RIGHT_CLICK_AIR ) ) { if ( main . getConfigValues ( ) . isEnabled ( Feature . FISHING_SOUND_INDICATOR ) ) { oldBobberIsInWater = false ; lastBobberEnteredWater = Long . MAX_VALUE ; oldBobberPosY = 0 ; } if ( main . getConfigValues ( ) . isEnabled ( Feature . SHOW_ITEM_COOLDOWNS ) && mc . thePlayer . fishEntity != null ) { CooldownManager . put ( mc . thePlayer . getHeldItem ( ) ) ; } } else if ( main . getConfigValues ( ) . isEnabled ( Feature . AVOID_PLACING_ENCHANTED_ITEMS ) && EnchantedItemBlacklist . shouldBlockUsage ( heldItem , e . action ) ) { e . setCanceled ( true ) ; } } }
This blocks interaction with Ember Rods on your island, to avoid blowing up chests, and placing enchanted items
 such as enchanted lava buckets.
This blocks interaction with Ember Rods on your island to avoid blowing up chests and placing enchanted items such as enchanted lava buckets .
// Prevent using ember rod on personal island // Update fishing status