Package valorless.rarespawns.ai
Class CustomSilverfish
java.lang.Object
valorless.rarespawns.ai.CustomSilverfish
- All Implemented Interfaces:
org.bukkit.event.Listener
Listener that disables block-burrowing behavior for rare silverfish.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinit()Registers this listener with the server plugin manager.voidonSilverfishBurrow(org.bukkit.event.entity.EntityChangeBlockEvent event) Cancels the silverfish burrow action when the entity is marked as rare.
-
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
-