java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.implementations.LocationFactorySpigot
All Implemented Interfaces:
ILocationFactory

@Singleton public class LocationFactorySpigot extends Object implements ILocationFactory
Represents an implementation of ILocationFactory for the Spigot platform.
  • Constructor Details

    • LocationFactorySpigot

      @Inject public LocationFactorySpigot(IWorldFactory worldFactory)
  • Method Details

    • create

      public LocationSpigot create(IWorld world, double x, double y, double z)
      Description copied from interface: ILocationFactory
      Creates a new ILocation.
      Specified by:
      create in interface ILocationFactory
      Parameters:
      world - The world.
      x - The x coordinate.
      y - The y coordinate.
      z - The z coordinate.
      Returns:
      A new ILocation object.
    • create

      public LocationSpigot create(IWorld world, IVector3D position)
      Description copied from interface: ILocationFactory
      Creates a new ILocation.
      Specified by:
      create in interface ILocationFactory
      Parameters:
      world - The world.
      position - The position in the world
      Returns:
      A new ILocation object.
    • create

      public LocationSpigot create(String worldName, double x, double y, double z)
      Description copied from interface: ILocationFactory
      Creates a new ILocation.
      Specified by:
      create in interface ILocationFactory
      Parameters:
      worldName - The name of the world.
      x - The x coordinate.
      y - The y coordinate.
      z - The z coordinate.
      Returns:
      A new ILocation object.
    • create

      public LocationSpigot create(String worldName, IVector3D position)
      Description copied from interface: ILocationFactory
      Creates a new ILocation.
      Specified by:
      create in interface ILocationFactory
      Parameters:
      worldName - The name of the world.
      position - The position in the world
      Returns:
      A new ILocation object.