Class RespawnLocation

    • Method Detail

      • worldKey

        public ResourceKey worldKey()
        Gets the key of the world.
        Returns:
        The key
      • position

        public Vector3d position()
        Gets the position within the world of this spawn point.
        Returns:
        The spawn position
      • isForced

        public boolean isForced()
        Gets whether the spawn position is forced in the given world, if available. A forced position will spawn the player there even if a bed is missing or obstructed.
        Returns:
        Whether the position is forced in the world
      • asLocation

        public java.util.Optional<ServerLocation> asLocation()
        Gets this spawn position as a ServerLocation object, if the world is available.
        Returns:
        The position object, if available.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object