Uses of Enum Class
net.minecraft.world.level.block.state.properties.RailShape
Packages that use RailShape
Package
Description
-
Uses of RailShape in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return RailShapeModifier and TypeMethodDescriptionprivate static RailShape
MinecartDispenseItemBehavior.getRailShape
(BlockState p_374571_, ServerLevel level, BlockPos pos) -
Uses of RailShape in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle with type parameters of type RailShapeMethods in net.minecraft.world.entity.vehicle with parameters of type RailShapeModifier and TypeMethodDescriptionprivate Vec3
NewMinecartBehavior.calculateSlopeSpeed
(Vec3 p_361946_, RailShape p_361759_) private Vec3
NewMinecartBehavior.calculateTrackSpeed
(ServerLevel p_376196_, Vec3 p_364530_, NewMinecartBehavior.TrackIteration p_364155_, BlockPos p_364264_, BlockState p_363628_, RailShape p_364548_) private boolean
NewMinecartBehavior.isDecending
(Vec3 p_363895_, RailShape p_363541_) protected double
AbstractMinecart.makeStepAlongTrack
(BlockPos p_365229_, RailShape p_363321_, double p_364439_) protected double
MinecartHopper.makeStepAlongTrack
(BlockPos p_360714_, RailShape p_361562_, double p_361083_) private boolean
NewMinecartBehavior.restAtVShape
(RailShape p_366540_, RailShape p_366691_) abstract double
MinecartBehavior.stepAlongTrack
(BlockPos p_360466_, RailShape p_361422_, double p_363822_) double
NewMinecartBehavior.stepAlongTrack
(BlockPos p_362592_, RailShape p_361660_, double p_361219_) double
OldMinecartBehavior.stepAlongTrack
(BlockPos p_361990_, RailShape p_361139_, double p_362001_) -
Uses of RailShape in net.minecraft.world.level.block
Fields in net.minecraft.world.level.block with type parameters of type RailShapeModifier and TypeFieldDescriptionstatic final EnumProperty
<RailShape> DetectorRailBlock.SHAPE
static final EnumProperty
<RailShape> PoweredRailBlock.SHAPE
static final EnumProperty
<RailShape> RailBlock.SHAPE
Methods in net.minecraft.world.level.block that return RailShapeModifier and TypeMethodDescriptionBaseRailBlock.getRailDirection
(BlockState state, BlockGetter world, BlockPos pos, AbstractMinecart cart) Methods in net.minecraft.world.level.block that return types with arguments of type RailShapeModifier and TypeMethodDescriptionBaseRailBlock.getShapeProperty()
Deprecated.DetectorRailBlock.getShapeProperty()
PoweredRailBlock.getShapeProperty()
RailBlock.getShapeProperty()
Methods in net.minecraft.world.level.block with parameters of type RailShapeModifier and TypeMethodDescriptionprotected boolean
PoweredRailBlock.isSameRailWithPower
(Level p_55226_, BlockPos p_55227_, boolean p_55228_, int p_55229_, RailShape p_55230_) private static boolean
BaseRailBlock.shouldBeRemoved
(BlockPos p_49399_, Level p_49400_, RailShape p_49401_) private void
RailState.updateConnections
(RailShape p_55428_) -
Uses of RailShape in net.minecraft.world.level.block.state.properties
Fields in net.minecraft.world.level.block.state.properties with type parameters of type RailShapeModifier and TypeFieldDescriptionstatic final EnumProperty
<RailShape> BlockStateProperties.RAIL_SHAPE
static final EnumProperty
<RailShape> BlockStateProperties.RAIL_SHAPE_STRAIGHT
Methods in net.minecraft.world.level.block.state.properties that return RailShape -
Uses of RailShape in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return RailShapeModifier and TypeMethodDescriptionIBaseRailBlockExtension.getRailDirection
(BlockState state, BlockGetter level, BlockPos pos, @Nullable AbstractMinecart cart) Return the rail's direction.Methods in net.neoforged.neoforge.common.extensions with parameters of type RailShapeModifier and TypeMethodDescriptiondefault boolean
IBaseRailBlockExtension.isValidRailShape
(RailShape shape) Returns true if the givenRailShape
is valid for this rail block.
BaseRailBlock.getRailDirection(BlockState, BlockGetter, BlockPos, net.minecraft.world.entity.vehicle.AbstractMinecart)
for enhanced ability If you do change this property be aware that other functions in this/subclasses may break as they can make assumptions about this property