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$Elasticity
intermediary net/minecraft/class_9817$class_11265
official cak$b
named force
intermediary comp_4146
official b
named torque
intermediary comp_4147
official c
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static double
calculateTorque
(Vec3d force, Vec3d force2) final boolean
Indicates whether some other object is "equal to" this one.force()
Returns the value of theforce
record component.final int
hashCode()
Returns a hash code value for this object.multiply
(double value) (package private) static Leashable.Elasticity
sumOf
(List<Leashable.Elasticity> elasticities) double
torque()
Returns the value of thetorque
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
force
The field for theforce
record component. -
torque
private final double torqueThe field for thetorque
record component. -
ZERO
- Mappings:
Namespace Name Mixin selector named ZERO
Lnet/minecraft/entity/Leashable$Elasticity;ZERO:Lnet/minecraft/entity/Leashable$Elasticity;
intermediary field_60006
Lnet/minecraft/class_9817$class_11265;field_60006:Lnet/minecraft/class_9817$class_11265;
official a
Lcak$b;a:Lcak$b;
-
-
Constructor Details
-
Elasticity
-
-
Method Details
-
calculateTorque
- Mappings:
Namespace Name Mixin selector named calculateTorque
Lnet/minecraft/entity/Leashable$Elasticity;calculateTorque(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)D
intermediary method_71008
Lnet/minecraft/class_9817$class_11265;method_71008(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)D
official a
Lcak$b;a(Lfis;Lfis;)D
-
sumOf
- Mappings:
Namespace Name Mixin selector named sumOf
Lnet/minecraft/entity/Leashable$Elasticity;sumOf(Ljava/util/List;)Lnet/minecraft/entity/Leashable$Elasticity;
intermediary method_71009
Lnet/minecraft/class_9817$class_11265;method_71009(Ljava/util/List;)Lnet/minecraft/class_9817$class_11265;
official a
Lcak$b;a(Ljava/util/List;)Lcak$b;
-
multiply
- Mappings:
Namespace Name Mixin selector named multiply
Lnet/minecraft/entity/Leashable$Elasticity;multiply(D)Lnet/minecraft/entity/Leashable$Elasticity;
intermediary method_71007
Lnet/minecraft/class_9817$class_11265;method_71007(D)Lnet/minecraft/class_9817$class_11265;
official a
Lcak$b;a(D)Lcak$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 theforce
record component.- Returns:
- the value of the
force
record component
-
torque
public double torque()Returns the value of thetorque
record component.- Returns:
- the value of the
torque
record component
-