Class DimPos
java.lang.Object
org.cyclops.cyclopscore.datastructure.DimPos
- All Implemented Interfaces:
Comparable<DimPos>
A simple data class for a block position inside a world.
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
net.minecraft.world.level.Level
getLevel
(boolean forceLoad) net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>
int
hashCode()
boolean
isLoaded()
static DimPos
of
(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> world, net.minecraft.core.BlockPos blockPos) static DimPos
of
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) withPosition
(net.minecraft.core.BlockPos pos)
-
Method Details
-
getLevelKey
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getLevelKey() -
getLevel
@Nullable public net.minecraft.world.level.Level getLevel(boolean forceLoad) -
isLoaded
public boolean isLoaded() -
compareTo
- Specified by:
compareTo
in interfaceComparable<DimPos>
-
equals
-
hashCode
public int hashCode() -
withPosition
-
of
public static DimPos of(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) -
of
public static DimPos of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> world, net.minecraft.core.BlockPos blockPos)
-