Package net.minecraft.entity.decoration
Record Class DisplayEntity.FloatLerperImpl
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.DisplayEntity.FloatLerperImpl
- Record Components:
previous-current-
- All Implemented Interfaces:
DisplayEntity.FloatLerper
- Enclosing class:
DisplayEntity
private static record DisplayEntity.FloatLerperImpl(float previous, float current)
extends Record
implements DisplayEntity.FloatLerper
- Mappings:
Namespace Name named net/minecraft/entity/decoration/DisplayEntity$FloatLerperImplintermediary net/minecraft/class_8113$class_8227official bsq$hnamed previousintermediary comp_1324official anamed currentintermediary comp_1325official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlerp(float delta) floatprevious()Returns the value of thepreviousrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
FloatLerperImpl
FloatLerperImpl(float float2, float float3)
-
-
Method Details
-
lerp
public float lerp(float delta) - Specified by:
lerpin interfaceDisplayEntity.FloatLerper- Mappings:
Namespace Name Mixin selector named lerpLnet/minecraft/entity/decoration/DisplayEntity$FloatLerper;lerp(F)Fintermediary method_48886Lnet/minecraft/class_8113$class_8117;method_48886(F)Fofficial getLbsq$d;get(F)F
-
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. All components in this record class are compared with '=='. -
previous
public float previous()Returns the value of thepreviousrecord component.- Returns:
- the value of the
previousrecord component
-
current
public float current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-