Package valorless.rarespawns.events
Class BreedEvent
java.lang.Object
valorless.rarespawns.events.BreedEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Prevents breeding for entities marked as rare. Registers as a listener and
cancels EntityEnterLoveModeEvent when the entity is rare to avoid duplicating
or altering the rare population via breeding mechanics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinit()Registers this listener with the Bukkit plugin manager.voidonEntityEnterLoveMode(org.bukkit.event.entity.EntityEnterLoveModeEvent event) Cancels love mode for rare entities so they cannot breed.
-
Constructor Details
-
BreedEvent
public BreedEvent()
-
-
Method Details
-
init
public static void init()Registers this listener with the Bukkit plugin manager. -
onEntityEnterLoveMode
public void onEntityEnterLoveMode(org.bukkit.event.entity.EntityEnterLoveModeEvent event) Cancels love mode for rare entities so they cannot breed.- Parameters:
event- love mode entry event for an entity
-