Interface ILocation
- All Known Implementing Classes:
EntityLocation,StaticLocation
public interface ILocation
Interface used to describe locations in the world.
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>Method to get the dimension of the location.@NotNull net.minecraft.core.BlockPosMethod to get the location in the dimensionbooleanisReachableFromLocation(@NotNull ILocation location) 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
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.
-