Interface Locatable

    • Method Detail

      • world

        World<?,​?> world()
        Gets the World.
        Returns:
        The World
      • location

        Location<?,​?> location()
        Gets the location of the source.
        Returns:
        The location
      • serverLocation

        default ServerLocation serverLocation()
        Gets the location of the source as a ServerLocation.

        For ease of use, we provide this as a quick way to not have to map out the optional in Location. Calling this when the source is not on the Server will result in a hard crash, do so at your own peril.

        Returns:
        The location
      • blockPosition

        default Vector3i blockPosition()