Class Orientation
java.lang.Object
net.minecraft.world.level.redstone.Orientation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Directionprivate final intprivate static final Orientation[]private final Directionprivate final Orientation.SideBiasstatic final StreamCodec<io.netty.buffer.ByteBuf, Orientation> private final Directionprivate final Map<Direction, Orientation> private final Map<Orientation.SideBias, Orientation> private final Map<Direction, Orientation> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOrientation(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) -
Method Summary
Modifier and TypeMethodDescriptionstatic OrientationfromIndex(int pIndex) private static OrientationgenerateContext(Orientation pStart, Orientation[] pOutput) protected static intgenerateIndex(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) getFront()intgetIndex()getSide()getUp()static Orientationof(Direction pUp, Direction pFront, Orientation.SideBias pSideBias) static Orientationrandom(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
-