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 p_362594_, Direction p_362639_, Orientation.SideBias p_361294_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Orientation
fromIndex
(int p_360364_) private static Orientation
generateContext
(Orientation p_360409_, Orientation[] p_363858_) protected static int
generateIndex
(Direction p_363983_, Direction p_362587_, Orientation.SideBias p_364035_) getFront()
int
getIndex()
getSide()
getUp()
static Orientation
of
(Direction p_364419_, Direction p_364902_, Orientation.SideBias p_361055_) static Orientation
random
(RandomSource p_362443_) toString()
withFrontAdjustSideBias
(Direction p_360736_) withFrontPreserveUp
(Direction p_366441_) withSideBias
(Orientation.SideBias p_361549_)
-
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
public static Orientation of(Direction p_364419_, Direction p_364902_, Orientation.SideBias p_361055_) -
withUp
-
withFront
-
withFrontPreserveUp
-
withFrontAdjustSideBias
-
withSideBias
-
withMirror
-
getFront
-
getUp
-
getSide
-
getSideBias
-
getDirections
-
getHorizontalDirections
-
getVerticalDirections
-
toString
-
getIndex
public int getIndex() -
fromIndex
-
random
-
generateContext
-
generateIndex
protected static int generateIndex(Direction p_363983_, Direction p_362587_, Orientation.SideBias p_364035_)
-