Class CustomSilverfish

java.lang.Object
valorless.rarespawns.ai.CustomSilverfish
All Implemented Interfaces:
org.bukkit.event.Listener

public class CustomSilverfish extends Object implements org.bukkit.event.Listener
Listener that disables block-burrowing behavior for rare silverfish.
  • Constructor Details

    • CustomSilverfish

      public CustomSilverfish()
  • Method Details

    • init

      public static void init()
      Registers this listener with the server plugin manager.
    • onSilverfishBurrow

      public void onSilverfishBurrow(org.bukkit.event.entity.EntityChangeBlockEvent event)
      Cancels the silverfish burrow action when the entity is marked as rare.
      Parameters:
      event - entity attempts to change a block