net.minecraft.world.entity.vehicle

public class NewMinecartBehavior

extends MinecartBehavior

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

Field summary

Modifier and TypeField
public static final int
b
POS_ROT_LERP_TICKS
field_52527
REFRESH_FREQUENCY
public static final double
c
ON_RAIL_Y_OFFSET
field_52528
field_52528
public static final double
d
OPPOSING_SLOPES_REST_AT_SPEED_THRESHOLD
field_53756
field_53756
private NewMinecartBehavior$StepPartialTicks
i
cacheIndexAlpha
field_52533
lastReturnedInterpolatedStep
private int
j
cachedLerpDelay
field_52534
lastQueriedTicksToNextRefresh
private float
k
cachedPartialTick
field_52535
lastQueriedTickDelta
private int
l
lerpDelay
field_52536
ticksToNextRefresh
public final List<NewMinecartBehavior$MinecartStep>
e
lerpSteps
field_52529
stagingLerpSteps
public final List<NewMinecartBehavior$MinecartStep>
f
currentLerpSteps
field_52530
currentLerpSteps
public double
g
currentLerpStepsTotalWeight
field_52531
totalWeight
public NewMinecartBehavior$MinecartStep
h
oldLerp
field_52532
initialStep

Constructor summary

ModifierConstructor
public (AbstractMinecart arg0)

Method summary

Modifier and TypeMethod
public void
g()
tick()
method_61587()
tick()
private void
u()
lerpClientPositionAndRotation()
method_61615()
tickClient()
public void
s()
setOldLerpValues()
method_61613()
setInitialStep()
public boolean
t()
cartHasPosRotLerp()
method_61614()
hasCurrentLerpSteps()
public float
c(float arg0)
getCartLerpXRot(float arg0)
method_61607(float arg0)
getLerpedPitch(float tickDelta)
public float
d(float arg0)
getCartLerpYRot(float arg0)
method_61608(float arg0)
getLerpedYaw(float tickDelta)
public Vec3
e(float arg0)
getCartLerpPosition(float arg0)
method_61610(float arg0)
getLerpedPosition(float tickDelta)
public Vec3
f(float arg0)
getCartLerpMovements(float arg0)
method_61611(float arg0)
getLerpedVelocity(float tickDelta)
private NewMinecartBehavior$StepPartialTicks
g(float arg0)
getCurrentLerpStep(float arg0)
method_61612(float arg0)
getLerpedStep(float tickDelta)
public void
a(ji arg0, dwy arg1, boolean arg2)
adjustToRails(BlockPos arg0, BlockState arg1, boolean arg2)
method_61605(class_2338 arg0, class_2680 arg1, boolean arg2)
adjustToRail(BlockPos pos, BlockState blockState, boolean ignoreWeight)
private void
a(float arg0, float arg1)
setRotation(float arg0, float arg1)
method_62827(float arg0, float arg1)
setAngles(float yaw, float pitch)
public void
a(ard arg0)
moveAlongTrack(ServerLevel arg0)
method_61589(class_3218 arg0)
moveOnRail(ServerWorld arg0)
private Vec3
a(ard arg0, fbb arg1, crm$c arg2, ji arg3, dwy arg4, dyb arg5)
calculateTrackSpeed(ServerLevel arg0, Vec3 arg1, NewMinecartBehavior$TrackIteration arg2, BlockPos arg3, BlockState arg4, RailShape arg5)
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 Vec3
a(fbb arg0, dyb arg1)
calculateSlopeSpeed(Vec3 arg0, RailShape arg1)
method_61603(class_243 arg0, class_2768 arg1)
applySlopeVelocity(Vec3d horizontalVelocity, RailShape railShape)
private Vec3
d(fbb arg0)
calculatePlayerInputSpeed(Vec3 arg0)
method_61609(class_243 arg0)
applyInitialVelocity(Vec3d horizontalVelocity)
private Vec3
a(fbb arg0, dwy arg1)
calculateHaltTrackSpeed(Vec3 arg0, BlockState arg1)
method_61602(class_243 arg0, class_2680 arg1)
decelerateFromPoweredRail(Vec3d velocity, BlockState railState)
private Vec3
a(fbb arg0, ji arg1, dwy arg2)
calculateBoostTrackSpeed(Vec3 arg0, BlockPos arg1, BlockState arg2)
method_61604(class_243 arg0, class_2338 arg1, class_2680 arg2)
accelerateFromPoweredRail(Vec3d velocity, BlockPos railPos, BlockState railState)
public double
a(ji arg0, dyb arg1, double arg2)
stepAlongTrack(BlockPos arg0, RailShape arg1, double arg2)
method_61577(class_2338 arg0, class_2768 arg1, double arg2)
moveAlongTrack(BlockPos arg0, RailShape arg1, double arg2)
private boolean
a(dyb arg0, dyb arg1)
restAtVShape(RailShape arg0, RailShape arg1)
method_62828(class_2768 arg0, class_2768 arg1)
restOnVShapedTrack(RailShape currentRailShape, RailShape newRailShape)
public double
b(ard arg0)
getMaxSpeed(ServerLevel arg0)
method_61598(class_3218 arg0)
getMaxSpeed(ServerWorld arg0)
private boolean
b(fbb arg0, dyb arg1)
isDecending(Vec3 arg0, RailShape arg1)
method_61606(class_243 arg0, class_2768 arg1)
ascends(Vec3d velocity, RailShape railShape)
public double
r()
getSlowdownFactor()
method_61599()
getSpeedRetention()
public boolean
i()
pushAndPickupEntities()
method_62826()
handleCollision()
public boolean
a(faw arg0)
pickupEntities(AABB arg0)
method_62829(class_238 arg0)
pickUpEntities(Box box)
public boolean
b(faw arg0)
pushEntities(AABB arg0)
method_62830(class_238 arg0)
pushAwayFromEntities(Box box)