Class BlockLocation

java.lang.Object
org.sgrewritten.stargate.api.network.portal.BlockLocation

public class BlockLocation extends Object
A class used to avoid memory leak from world unloading
  • Constructor Details

    • BlockLocation

      public BlockLocation(org.bukkit.Location location)
      Instantiates a new block location
      Parameters:
      location -

      The location this block location should represent

  • Method Details

    • getLocation

      public org.bukkit.Location getLocation()
      Gets the location corresponding to this block location
      Returns:

      The location corresponding to this block location

    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object