Interface LocationCreator<W extends World<W,L>,L extends Location<W,L>>

All Known Subinterfaces:
ClientWorld, ServerLocationCreator, ServerWorld, World<W,L>

public interface LocationCreator<W extends World<W,L>,L extends Location<W,L>>
  • Method Summary

    Modifier and Type
    Method
    Description
    default L
    location(double x, double y, double z)
    Gets a location in this extent at the given position.
    default L
    location(int x, int y, int z)
    Gets a location in this extent at the given position.
    location(Vector3d position)
    Gets a location in this extent at the given position.
    location(Vector3i position)
    Gets a location in this extent at the given position.
     
  • Method Details

    • world

      W world()
    • location

      L location(Vector3i position)
      Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent.
      Parameters:
      position - The position
      Returns:
      The location in this extent
    • location

      default L location(int x, int y, int z)
      Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent.
      Parameters:
      x - The X position
      y - The Y position
      z - The Z position
      Returns:
      The location in this extent
    • location

      L location(Vector3d position)
      Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent. This method supports sub-block positions. Block-related methods use flooring to get integer coordinates.
      Parameters:
      position - The position
      Returns:
      The location in this extent
    • location

      default L location(double x, double y, double z)
      Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent. This method supports sub-block positions. Block-related methods use flooring to get integer coordinates.
      Parameters:
      x - The X position
      y - The Y position
      z - The Z position
      Returns:
      The location in this extent