net.minecraft.entity.vehicle

public class ExperimentalMinecartController

extends MinecartController

net.minecraft.world.entity.vehicle.minecart.NewMinecartBehavior
net.minecraft.class_9879
net.minecraft.entity.vehicle.ExperimentalMinecartController

Field summary

Modifier and TypeField
public static final int
POS_ROT_LERP_TICKS
field_52527
REFRESH_FREQUENCY
public static final double
ON_RAIL_Y_OFFSET
field_52528
field_52528
public static final double
OPPOSING_SLOPES_REST_AT_SPEED_THRESHOLD
field_53756
field_53756
private ExperimentalMinecartController$InterpolatedStep
cacheIndexAlpha
field_52533
lastReturnedInterpolatedStep
private int
cachedLerpDelay
field_52534
lastQueriedTicksToNextRefresh
private float
cachedPartialTick
field_52535
lastQueriedTickProgress
private int
lerpDelay
field_52536
ticksToNextRefresh
public final List<ExperimentalMinecartController$Step>
lerpSteps
field_52529
stagingLerpSteps
public final List<ExperimentalMinecartController$Step>
currentLerpSteps
field_52530
currentLerpSteps
public double
currentLerpStepsTotalWeight
field_52531
totalWeight
public ExperimentalMinecartController$Step
oldLerp
field_52532
initialStep

Constructor summary

ModifierConstructor
public (AbstractMinecartEntity minecart)

Method summary

Modifier and TypeMethod
public void
tick()
method_61587()
tick()
private void
lerpClientPositionAndRotation()
method_61615()
tickClient()
public void
setOldLerpValues()
method_61613()
setInitialStep()
public boolean
cartHasPosRotLerp()
method_61614()
hasCurrentLerpSteps()
public float
getCartLerpXRot(float partialTicks)
method_61607(float arg0)
getLerpedPitch(float tickProgress)
public float
getCartLerpYRot(float partialTicks)
method_61608(float arg0)
getLerpedYaw(float tickProgress)
public Vec3d
getCartLerpPosition(float partialTicks)
method_61610(float arg0)
getLerpedPosition(float tickProgress)
public Vec3d
getCartLerpMovements(float partialTicks)
method_61611(float arg0)
getLerpedVelocity(float tickProgress)
private ExperimentalMinecartController$InterpolatedStep
getCurrentLerpStep(float partialTick)
method_61612(float arg0)
getLerpedStep(float tickProgress)
public void
adjustToRails(BlockPos targetBlockPos, BlockState currentState, boolean instant)
method_61605(class_2338 arg0, class_2680 arg1, boolean arg2)
adjustToRail(BlockPos pos, BlockState blockState, boolean ignoreWeight)
private void
setRotation(float yRot, float xRot)
method_62827(float arg0, float arg1)
setAngles(float yaw, float pitch)
public void
moveAlongTrack(ServerLevel level)
method_61589(class_3218 arg0)
moveOnRail(ServerWorld arg0)
private Vec3d
calculateTrackSpeed(ServerLevel level, Vec3 deltaMovement, NewMinecartBehavior$TrackIteration trackIteration, BlockPos currentPos, BlockState currentState, RailShape shape)
method_61601(class_3218 arg0, class_243 arg1, class_9879$class_9882 arg2, class_2338 arg3, class_2680 arg4, class_2768 arg5)
calcNewHorizontalVelocity(ServerWorld world, Vec3d horizontalVelocity, ExperimentalMinecartController$MoveIteration iteration, BlockPos pos, BlockState railState, RailShape railShape)
private Vec3d
calculateSlopeSpeed(Vec3 deltaMovement, RailShape shape)
method_61603(class_243 arg0, class_2768 arg1)
applySlopeVelocity(Vec3d horizontalVelocity, RailShape railShape)
private Vec3d
calculatePlayerInputSpeed(Vec3 deltaMovement)
method_61609(class_243 arg0)
applyInitialVelocity(Vec3d horizontalVelocity)
private Vec3d
calculateHaltTrackSpeed(Vec3 deltaMovement, BlockState state)
method_61602(class_243 arg0, class_2680 arg1)
decelerateFromPoweredRail(Vec3d velocity, BlockState railState)
private Vec3d
calculateBoostTrackSpeed(Vec3 deltaMovement, BlockPos pos, BlockState state)
method_61604(class_243 arg0, class_2338 arg1, class_2680 arg2)
accelerateFromPoweredRail(Vec3d velocity, BlockPos railPos, BlockState railState)
public double
stepAlongTrack(BlockPos pos, RailShape shape, double movementLeft)
method_61577(class_2338 arg0, class_2768 arg1, double arg2)
moveAlongTrack(BlockPos arg0, RailShape arg1, double arg2)
private boolean
restAtVShape(RailShape currentRailShape, RailShape newRailShape)
method_62828(class_2768 arg0, class_2768 arg1)
restOnVShapedTrack(RailShape currentRailShape, RailShape newRailShape)
public double
getMaxSpeed(ServerLevel level)
method_61598(class_3218 arg0)
getMaxSpeed(ServerWorld arg0)
private boolean
isDecending(Vec3 movement, RailShape shape)
method_61606(class_243 arg0, class_2768 arg1)
ascends(Vec3d velocity, RailShape railShape)
public double
getSlowdownFactor()
method_61599()
getSpeedRetention()
public boolean
pushAndPickupEntities()
method_62826()
handleCollision()
public boolean
pickupEntities(AABB hitbox)
method_62829(class_238 arg0)
pickUpEntities(Box box)
public boolean
pushEntities(AABB hitbox)
method_62830(class_238 arg0)
pushAwayFromEntities(Box box)