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 RailShapeMinecartDispenseItemBehavior.getRailShape(BlockState pState, ServerLevel level, BlockPos pos) -
Uses of RailShape in net.minecraft.world.entity.vehicle.minecart
Fields in net.minecraft.world.entity.vehicle.minecart with type parameters of type RailShapeMethods in net.minecraft.world.entity.vehicle.minecart with parameters of type RailShapeModifier and TypeMethodDescriptionprivate Vec3NewMinecartBehavior.calculateSlopeSpeed(Vec3 pSpeed, RailShape pRailShape) private Vec3NewMinecartBehavior.calculateTrackSpeed(ServerLevel pLevel, Vec3 pSpeed, NewMinecartBehavior.TrackIteration pTrackIteration, BlockPos pPos, BlockState pState, RailShape pRailShape) private booleanNewMinecartBehavior.isDecending(Vec3 pSpeed, RailShape pRailShape) protected doubleAbstractMinecart.makeStepAlongTrack(BlockPos pPos, RailShape pRailShape, double pSpeed) protected doubleMinecartHopper.makeStepAlongTrack(BlockPos p_479946_, RailShape p_477989_, double p_477937_) private booleanNewMinecartBehavior.restAtVShape(RailShape pShape1, RailShape pShape2) abstract doubleMinecartBehavior.stepAlongTrack(BlockPos pPos, RailShape pRailShape, double pSpeed) doubleNewMinecartBehavior.stepAlongTrack(BlockPos p_480935_, RailShape p_479906_, double p_479582_) doubleOldMinecartBehavior.stepAlongTrack(BlockPos p_481538_, RailShape p_477982_, double p_479553_) -
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.SHAPEstatic final EnumProperty<RailShape> PoweredRailBlock.SHAPEstatic final EnumProperty<RailShape> RailBlock.SHAPEMethods in net.minecraft.world.level.block that return RailShapeModifier and TypeMethodDescriptionBaseRailBlock.getRailDirection(BlockState state, BlockGetter world, BlockPos pos, @Nullable AbstractMinecart cart) protected RailShapeprotected RailShapeMethods 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 booleanPoweredRailBlock.isSameRailWithPower(Level pLevel, BlockPos pState, boolean pSearchForward, int pRecursionCount, RailShape pShape) protected RailShapeprotected RailShapeprivate static booleanBaseRailBlock.shouldBeRemoved(BlockPos pPos, Level pLevel, RailShape pShape) private voidRailState.updateConnections(RailShape pShape) -
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_SHAPEstatic final EnumProperty<RailShape> BlockStateProperties.RAIL_SHAPE_STRAIGHTMethods 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 booleanIBaseRailBlockExtension.isValidRailShape(RailShape shape) Returns true if the givenRailShapeis valid for this rail block.
BaseRailBlock.getRailDirection(BlockState, BlockGetter, BlockPos, net.minecraft.world.entity.vehicle.minecart.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