Package dev.crafty.core.bridge.mobs
Interface MobBridge
- All Superinterfaces:
Bridge
- All Known Implementing Classes:
MythicMobsBridge
MobBridge defines an interface for bridging mob-related actions,
such as spawning and despawning mobs, between different systems.
It extends the
Bridge
interface.- Since:
- 1.0.25
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns the type or category name of this bridge.default Optional
<org.bukkit.entity.Entity> Spawns a mob with the given name at the specifiedPoint3d
location, using a default level of 1.Optional
<org.bukkit.entity.Entity> Spawns a mob with the given name at the specifiedPoint3d
location.default Optional
<org.bukkit.entity.Entity> Spawns a mob with the given name at the specified BukkitLocation
.Methods inherited from interface dev.crafty.core.bridge.Bridge
canRegister, getName, pluginEnabled
-
Method Details
-
spawnMob
Optional<org.bukkit.entity.Entity> spawnMob(String mobName, Point3d location, String world, int level) Spawns a mob with the given name at the specifiedPoint3d
location.- Parameters:
mobName
- the name of the mob to spawnlocation
- the 3D point where the mob should be spawned
-
spawnMob
Spawns a mob with the given name at the specified BukkitLocation
. This is a default method that converts the Bukkit Location to aPoint3d
.- Parameters:
mobName
- the name of the mob to spawnlocation
- the Bukkit location where the mob should be spawned
-
spawnMob
Spawns a mob with the given name at the specifiedPoint3d
location, using a default level of 1.- Parameters:
mobName
- the name of the mob to spawnlocation
- the 3D point where the mob should be spawned
-
bridgeName
Description copied from interface:Bridge
Returns the type or category name of this bridge.- Specified by:
bridgeName
in interfaceBridge
- Returns:
- the bridge type name
-