Package dev.plex.listener.impl
Class MobListener
java.lang.Object
dev.plex.listener.PlexListener
dev.plex.listener.impl.MobListener
- All Implemented Interfaces:
PlexBase
,org.bukkit.event.Listener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEntityLimitReached
(org.bukkit.Chunk chunk, int limit) void
onDispense
(org.bukkit.event.block.BlockDispenseEvent event) void
onEntityClick
(org.bukkit.event.player.PlayerInteractEntityEvent event) void
onEntitySpawn
(org.bukkit.event.entity.EntitySpawnEvent event) void
onPlayerInteract
(org.bukkit.event.player.PlayerInteractEvent event) private static org.bukkit.entity.EntityType
spawnEggToEntityType
(org.bukkit.Material mat)
-
Field Details
-
SPAWN_EGGS
-
-
Constructor Details
-
MobListener
public MobListener()
-
-
Method Details
-
spawnEggToEntityType
private static org.bukkit.entity.EntityType spawnEggToEntityType(org.bukkit.Material mat) -
onEntitySpawn
public void onEntitySpawn(org.bukkit.event.entity.EntitySpawnEvent event) -
onDispense
public void onDispense(org.bukkit.event.block.BlockDispenseEvent event) -
onEntityClick
public void onEntityClick(org.bukkit.event.player.PlayerInteractEntityEvent event) -
onPlayerInteract
public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) -
isEntityLimitReached
public static boolean isEntityLimitReached(org.bukkit.Chunk chunk, int limit)
-