Class PartPos
java.lang.Object
org.cyclops.integrateddynamics.api.part.PartPos
- All Implemented Interfaces:
Comparable<PartPos>
Object holder to refer to a block side and position.
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
static org.apache.commons.lang3.tuple.Pair
<IPartType, IPartState> getPartData
(PartPos pos) Get part data from the given position.org.cyclops.cyclopscore.datastructure.DimPos
getPos()
net.minecraft.core.Direction
getSide()
int
hashCode()
static PartPos
of
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side) static PartPos
of
(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction side) toString()
-
Method Details
-
of
public static PartPos of(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.core.Direction side) -
of
public static PartPos of(org.cyclops.cyclopscore.datastructure.DimPos pos, @Nullable net.minecraft.core.Direction side) -
getPos
public org.cyclops.cyclopscore.datastructure.DimPos getPos() -
getSide
@Nullable public net.minecraft.core.Direction getSide() -
equals
-
hashCode
public int hashCode() -
toString
-
getPartData
@Nullable public static org.apache.commons.lang3.tuple.Pair<IPartType,IPartState> getPartData(PartPos pos) Get part data from the given position.- Parameters:
pos
- The part position.- Returns:
- A pair of part type and part state or null if not found.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PartPos>
-