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$InterpolatedStepintermediary net/minecraft/class_9879$class_9881official cvk$bnamed partialTicksInStepintermediary comp_2926official anamed currentStepintermediary comp_2927official bnamed previousStepintermediary comp_2928official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExperimentalMinecartController.StepThe field for thecurrentSteprecord component.private final floatThe field for thepartialTicksInSteprecord component.private final ExperimentalMinecartController.StepThe field for thepreviousSteprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInterpolatedStep(float float2, ExperimentalMinecartController.Step step, ExperimentalMinecartController.Step step2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentSteprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thepartialTicksInSteprecord component.Returns the value of thepreviousSteprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
partialTicksInStep
private final float partialTicksInStepThe field for thepartialTicksInSteprecord component. -
currentStep
The field for thecurrentSteprecord component. -
previousStep
The field for thepreviousSteprecord 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 thepartialTicksInSteprecord component.- Returns:
- the value of the
partialTicksInSteprecord component
-
currentStep
Returns the value of thecurrentSteprecord component.- Returns:
- the value of the
currentSteprecord component
-
previousStep
Returns the value of thepreviousSteprecord component.- Returns:
- the value of the
previousSteprecord component
-