All Known Implementing Classes:
EntityLocation, StaticLocation

public interface ILocation
Interface used to describe locations in the world.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
    Method to get the dimension of the location.
    @NotNull net.minecraft.core.BlockPos
    Method to get the location in the dimension
    boolean
    Method to check if this location is reachable from the other.
  • Method Details

    • getInDimensionLocation

      @NotNull @NotNull net.minecraft.core.BlockPos getInDimensionLocation()
      Method to get the location in the dimension
      Returns:
      The location.
    • getDimension

      @NotNull @NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()
      Method to get the dimension of the location.
      Returns:
      The dimension of the location.
    • isReachableFromLocation

      boolean isReachableFromLocation(@NotNull @NotNull ILocation location)
      Method to check if this location is reachable from the other.
      Parameters:
      location - The check if it is reachable from here.
      Returns:
      True when reachable, false when not.