Package net.minecraft.entity
Record Class Leashable.Elasticity
java.lang.Object
java.lang.Record
net.minecraft.entity.Leashable.Elasticity
- Record Components:
force-torque-
- Enclosing interface:
Leashable
- Mappings:
Namespace Name named net/minecraft/entity/Leashable$Elasticityintermediary net/minecraft/class_9817$class_11265official ceu$bnamed forceintermediary comp_4146official bnamed torqueintermediary comp_4147official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static doublecalculateTorque(Vec3d force, Vec3d force2) final booleanIndicates whether some other object is "equal to" this one.force()Returns the value of theforcerecord component.final inthashCode()Returns a hash code value for this object.multiply(double value) (package private) static Leashable.ElasticitysumOf(List<Leashable.Elasticity> elasticities) doubletorque()Returns the value of thetorquerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
force
The field for theforcerecord component. -
torque
private final double torqueThe field for thetorquerecord component. -
ZERO
- Mappings:
Namespace Name Mixin selector named ZEROLnet/minecraft/entity/Leashable$Elasticity;ZERO:Lnet/minecraft/entity/Leashable$Elasticity;intermediary field_60006Lnet/minecraft/class_9817$class_11265;field_60006:Lnet/minecraft/class_9817$class_11265;official aLceu$b;a:Lceu$b;
-
-
Constructor Details
-
Elasticity
-
-
Method Details
-
calculateTorque
- Mappings:
Namespace Name Mixin selector named calculateTorqueLnet/minecraft/entity/Leashable$Elasticity;calculateTorque(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Dintermediary method_71008Lnet/minecraft/class_9817$class_11265;method_71008(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Dofficial aLceu$b;a(Lfoh;Lfoh;)D
-
sumOf
- Mappings:
Namespace Name Mixin selector named sumOfLnet/minecraft/entity/Leashable$Elasticity;sumOf(Ljava/util/List;)Lnet/minecraft/entity/Leashable$Elasticity;intermediary method_71009Lnet/minecraft/class_9817$class_11265;method_71009(Ljava/util/List;)Lnet/minecraft/class_9817$class_11265;official aLceu$b;a(Ljava/util/List;)Lceu$b;
-
multiply
- Mappings:
Namespace Name Mixin selector named multiplyLnet/minecraft/entity/Leashable$Elasticity;multiply(D)Lnet/minecraft/entity/Leashable$Elasticity;intermediary method_71007Lnet/minecraft/class_9817$class_11265;method_71007(D)Lnet/minecraft/class_9817$class_11265;official aLceu$b;a(D)Lceu$b;
-
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 '=='. -
force
Returns the value of theforcerecord component.- Returns:
- the value of the
forcerecord component
-
torque
public double torque()Returns the value of thetorquerecord component.- Returns:
- the value of the
torquerecord component
-