Package net.minecraft.entity.vehicle
Record Class ExperimentalMinecartController.InterpolatedStep
java.lang.Object
java.lang.Record
net.minecraft.entity.vehicle.ExperimentalMinecartController.InterpolatedStep
- Record Components:
partialTicksInStep
-currentStep
-previousStep
-
- Enclosing class:
ExperimentalMinecartController
private static record ExperimentalMinecartController.InterpolatedStep(float partialTicksInStep, ExperimentalMinecartController.Step currentStep, ExperimentalMinecartController.Step previousStep)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/vehicle/ExperimentalMinecartController$InterpolatedStep
intermediary net/minecraft/class_9879$class_9881
official csk$b
named partialTicksInStep
intermediary comp_2926
official a
named currentStep
intermediary comp_2927
official b
named previousStep
intermediary comp_2928
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ExperimentalMinecartController.Step
The field for thecurrentStep
record component.private final float
The field for thepartialTicksInStep
record component.private final ExperimentalMinecartController.Step
The field for thepreviousStep
record component. -
Constructor Summary
ConstructorDescriptionInterpolatedStep
(float float2, ExperimentalMinecartController.Step step, ExperimentalMinecartController.Step step2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentStep
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
Returns the value of thepartialTicksInStep
record component.Returns the value of thepreviousStep
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
partialTicksInStep
private final float partialTicksInStepThe field for thepartialTicksInStep
record component. -
currentStep
The field for thecurrentStep
record component. -
previousStep
The field for thepreviousStep
record component.
-
-
Constructor Details
-
InterpolatedStep
InterpolatedStep(float float2, ExperimentalMinecartController.Step step, ExperimentalMinecartController.Step step2)
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
partialTicksInStep
public float partialTicksInStep()Returns the value of thepartialTicksInStep
record component.- Returns:
- the value of the
partialTicksInStep
record component
-
currentStep
Returns the value of thecurrentStep
record component.- Returns:
- the value of the
currentStep
record component
-
previousStep
Returns the value of thepreviousStep
record component.- Returns:
- the value of the
previousStep
record component
-