Class Orientation
java.lang.Object
net.minecraft.world.level.redstone.Orientation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Direction
private final int
private static final Orientation[]
private final Direction
private final Orientation.SideBias
static final StreamCodec
<io.netty.buffer.ByteBuf, Orientation> private final Direction
private final Map
<Direction, Orientation> private final Map
<Orientation.SideBias, Orientation> private final Map
<Direction, Orientation> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Orientation
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) -
Method Summary
Modifier and TypeMethodDescriptionstatic Orientation
fromIndex
(int p_360364_) private static Orientation
generateContext
(Orientation pStart, Orientation[] pOutput) protected static int
generateIndex
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) getFront()
int
getIndex()
getSide()
getUp()
static Orientation
of
(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) static Orientation
random
(RandomSource pRandom) toString()
withFrontAdjustSideBias
(Direction pFront) withFrontPreserveUp
(Direction pFront) withSideBias
(Orientation.SideBias pSideBias)
-
Field Details
-
STREAM_CODEC
-
ORIENTATIONS
-
up
-
front
-
side
-
sideBias
-
index
private final int index -
neighbors
-
horizontalNeighbors
-
verticalNeighbors
-
withFront
-
withUp
-
withSideBias
-
-
Constructor Details
-
Orientation
-
-
Method Details
-
of
-
withUp
-
withFront
-
withFrontPreserveUp
-
withFrontAdjustSideBias
-
withSideBias
-
withMirror
-
getFront
-
getUp
-
getSide
-
getSideBias
-
getDirections
-
getHorizontalDirections
-
getVerticalDirections
-
toString
-
getIndex
public int getIndex() -
fromIndex
-
random
-
generateContext
-
generateIndex
-