Class EntitySpawnListener
java.lang.Object
me.lokka30.levelledmobs.listeners.EntitySpawnListener
- All Implemented Interfaces:
org.bukkit.event.Listener
This class handles mob spawning on the server, forming the starting point of the 'levelling'
process
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<org.bukkit.entity.Player>
getPlayersNearMob
(@NotNull org.bukkit.entity.LivingEntity mob, int checkDistance) void
onEntitySpawn
(@NotNull org.bukkit.event.entity.EntitySpawnEvent event) void
preprocessMob
(@NotNull LivingEntityWrapper lmEntity, @NotNull org.bukkit.event.Event event)
-
Field Details
-
processMobSpawns
public boolean processMobSpawns
-
-
Constructor Details
-
EntitySpawnListener
-
-
Method Details
-
onEntitySpawn
public void onEntitySpawn(@NotNull @NotNull org.bukkit.event.entity.EntitySpawnEvent event) -
getPlayersNearMob
@NotNull public static @NotNull List<org.bukkit.entity.Player> getPlayersNearMob(@NotNull @NotNull org.bukkit.entity.LivingEntity mob, int checkDistance) -
preprocessMob
public void preprocessMob(@NotNull @NotNull LivingEntityWrapper lmEntity, @NotNull @NotNull org.bukkit.event.Event event)
-