Uses of Enum Class
net.minecraft.block.enums.RailShape
Package
Description
-
Uses of RailShape in net.minecraft.block
Modifier and TypeFieldDescriptionstatic final EnumProperty
<RailShape> DetectorRailBlock.SHAPE
static final EnumProperty
<RailShape> PoweredRailBlock.SHAPE
static final EnumProperty
<RailShape> RailBlock.SHAPE
Modifier and TypeMethodDescriptionAbstractRailBlock.getShapeProperty()
DetectorRailBlock.getShapeProperty()
PoweredRailBlock.getShapeProperty()
RailBlock.getShapeProperty()
Modifier and TypeMethodDescriptionprivate void
RailPlacementHelper.computeNeighbors
(RailShape shape) protected boolean
PoweredRailBlock.isPoweredByOtherRails
(World world, BlockPos pos, boolean bool, int distance, RailShape shape) private static boolean
AbstractRailBlock.shouldDropRail
(BlockPos pos, World world, RailShape shape) Checks if this rail should be dropped.RailPlacementHelper.updateBlockState
(boolean powered, boolean forceUpdate, RailShape railShape) -
Uses of RailShape in net.minecraft.block.dispenser
Modifier and TypeMethodDescriptionprivate static RailShape
MinecartDispenserBehavior.getRailShape
(BlockState state) -
Uses of RailShape in net.minecraft.block.enums
-
Uses of RailShape in net.minecraft.entity.vehicle
Modifier and TypeMethodDescriptionprivate Vec3d
ExperimentalMinecartController.applySlopeVelocity
(Vec3d horizontalVelocity, RailShape railShape) private boolean
private Vec3d
ExperimentalMinecartController.calcNewHorizontalVelocity
(ServerWorld world, Vec3d horizontalVelocity, ExperimentalMinecartController.MoveIteration iteration, BlockPos pos, BlockState railState, RailShape railShape) AbstractMinecartEntity.getAdjacentRailPositionsByShape
(RailShape shape) protected double
AbstractMinecartEntity.moveAlongTrack
(BlockPos pos, RailShape shape, double remainingMovement) double
DefaultMinecartController.moveAlongTrack
(BlockPos blockPos, RailShape railShape, double remainingMovement) double
ExperimentalMinecartController.moveAlongTrack
(BlockPos blockPos, RailShape railShape, double remainingMovement) protected double
HopperMinecartEntity.moveAlongTrack
(BlockPos pos, RailShape shape, double remainingMovement) abstract double
MinecartController.moveAlongTrack
(BlockPos blockPos, RailShape railShape, double remainingMovement) private boolean
ExperimentalMinecartController.restOnVShapedTrack
(RailShape currentRailShape, RailShape newRailShape) Prevents otherwise stationary minecart from going back and forth on a V-shaped track. -
Uses of RailShape in net.minecraft.state.property
Modifier and TypeFieldDescriptionstatic final EnumProperty
<RailShape> Properties.RAIL_SHAPE
A property that specifies the two directions a rail connects to.static final EnumProperty
<RailShape> Properties.STRAIGHT_RAIL_SHAPE
A property that specifies the two directions a rail connects to.