Interface MobBridge

All Superinterfaces:
Bridge
All Known Implementing Classes:
MythicMobsBridge

public interface MobBridge extends Bridge
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 Type
    Method
    Description
    default String
    Returns the type or category name of this bridge.
    default Optional<org.bukkit.entity.Entity>
    spawnMob(String mobName, Point3d location, String world)
    Spawns a mob with the given name at the specified Point3d location, using a default level of 1.
    Optional<org.bukkit.entity.Entity>
    spawnMob(String mobName, Point3d location, String world, int level)
    Spawns a mob with the given name at the specified Point3d location.
    default Optional<org.bukkit.entity.Entity>
    spawnMob(String mobName, org.bukkit.Location location)
    Spawns a mob with the given name at the specified Bukkit Location.

    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 specified Point3d location.
      Parameters:
      mobName - the name of the mob to spawn
      location - the 3D point where the mob should be spawned
    • spawnMob

      default Optional<org.bukkit.entity.Entity> spawnMob(String mobName, org.bukkit.Location location)
      Spawns a mob with the given name at the specified Bukkit Location. This is a default method that converts the Bukkit Location to a Point3d.
      Parameters:
      mobName - the name of the mob to spawn
      location - the Bukkit location where the mob should be spawned
    • spawnMob

      default Optional<org.bukkit.entity.Entity> spawnMob(String mobName, Point3d location, String world)
      Spawns a mob with the given name at the specified Point3d location, using a default level of 1.
      Parameters:
      mobName - the name of the mob to spawn
      location - the 3D point where the mob should be spawned
    • bridgeName

      default String bridgeName()
      Description copied from interface: Bridge
      Returns the type or category name of this bridge.
      Specified by:
      bridgeName in interface Bridge
      Returns:
      the bridge type name