Class StructureSpawnHolder

java.lang.Object
com.ryandw11.structure.api.holder.StructureSpawnHolder

public class StructureSpawnHolder extends Object
Holds specific information about the spawning of a structure for the event.

This is meant to be used internally and should not be accessed by other plugins.

Get the same information from the StructureSpawnEvent.

  • Constructor Details

    • StructureSpawnHolder

      public StructureSpawnHolder(org.bukkit.Location minimumPoint, org.bukkit.Location maximumPoint, List<org.bukkit.Location> containersAndSignsLocations)
  • Method Details

    • getMinimumPoint

      public org.bukkit.Location getMinimumPoint()
      The minimum point for a structure.

      See StructureSpawnEvent.getMinimumPoint() for additional details and usage.

      Returns:
      The minimum point.
    • getMaximumPoint

      public org.bukkit.Location getMaximumPoint()
      The maximum point for a structure.

      See StructureSpawnEvent.getMaximumPoint() for additional details and usage.

      Returns:
      The maximum point.
    • getContainersAndSignsLocations

      public List<org.bukkit.Location> getContainersAndSignsLocations()
      Get the locations for containers and signs.

      See StructureSpawnEvent.getContainersAndSignsLocations().

      Returns:
      The locations for containers and signs.