Class PathEnvironment

java.lang.Object
de.metaphoriker.pathetic.api.wrapper.PathEnvironment

public final class PathEnvironment extends Object
Represents the environment in which pathfinding operations take place. This class encapsulates properties of the environment that can influence pathfinding, such as the environment's unique identifier, name, and height constraints.
  • Constructor Details

    • PathEnvironment

      public PathEnvironment(UUID uuid, String name, Integer minHeight, Integer maxHeight)
      Constructs a PathEnvironment with the specified attributes.
      Parameters:
      uuid - The unique identifier for this environment.
      name - The name of this environment.
      minHeight - The minimum height within this environment. Can be null if there is no minimum height.
      maxHeight - The maximum height within this environment. Can be null if there is no maximum height.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getUuid

      public UUID getUuid()
      Get the unique identifier of this environment.
    • getName

      public String getName()
      Get the name of this environment.
    • getMinHeight

      public Integer getMinHeight()
      Get the min height of this environment.
    • getMaxHeight

      public Integer getMaxHeight()
      Get the max height of this environment.
    • toString

      public String toString()
      Overrides:
      toString in class Object