Class EntitySpawnListener

java.lang.Object
me.lokka30.levelledmobs.listeners.EntitySpawnListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class EntitySpawnListener extends Object implements org.bukkit.event.Listener
This class handles mob spawning on the server, forming the starting point of the 'levelling' process
  • Field Details

    • processMobSpawns

      public boolean processMobSpawns
  • Constructor Details

    • EntitySpawnListener

      public EntitySpawnListener(LevelledMobs main)
  • 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)