类 Orientation
java.lang.Object
net.minecraft.world.level.redstone.Orientation
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private 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> -
构造器概要
构造器限定符构造器说明private
Orientation
(Direction p_362594_, Direction p_362639_, Orientation.SideBias p_361294_) -
方法概要
修饰符和类型方法说明static 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_)
-
字段详细资料
-
STREAM_CODEC
-
ORIENTATIONS
-
up
-
front
-
side
-
sideBias
-
index
private final int index -
neighbors
-
horizontalNeighbors
-
verticalNeighbors
-
withFront
-
withUp
-
withSideBias
-
-
构造器详细资料
-
Orientation
-
-
方法详细资料
-
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_)
-