Package dev.crafty.core.bridge.mobs
Interface MobBridge
- All Superinterfaces:
Bridge
- All Known Implementing Classes:
MythicMobsBridge
-
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 specifiedLocation
location, using a default level of 1.Optional
<org.bukkit.entity.Entity> Spawns a mob with the given name at the specifiedLocation
location.Methods inherited from interface dev.crafty.core.bridge.Bridge
canRegister, getName, pluginEnabled
-
Method Details
-
spawnMob
Optional<org.bukkit.entity.Entity> spawnMob(String mobName, org.bukkit.Location location, String world, int level) Spawns a mob with the given name at the specifiedLocation
location.- Parameters:
mobName
- the name of the mob to spawnlocation
- the 3D point where the mob should be spawned
-
spawnMob
default Optional<org.bukkit.entity.Entity> spawnMob(String mobName, org.bukkit.Location location, String world) Spawns a mob with the given name at the specifiedLocation
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
-