Record Class Leashable.Elasticity

java.lang.Object
java.lang.Record
net.minecraft.entity.Leashable.Elasticity
Record Components:
force -
torque -
Enclosing interface:
Leashable

public static record Leashable.Elasticity(Vec3d force, double torque) extends Record
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 Details

    • force

      private final Vec3d force
      The field for the force record component.
    • torque

      private final double torque
      The field for the torque record component.
    • ZERO

      static Leashable.Elasticity 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

      public Elasticity(Vec3d vec3d, double double2)
  • Method Details

    • calculateTorque

      static double calculateTorque(Vec3d force, Vec3d force2)
      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

      static Leashable.Elasticity sumOf(List<Leashable.Elasticity> elasticities)
      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

      public Leashable.Elasticity multiply(double value)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • force

      public Vec3d force()
      Returns the value of the force record component.
      Returns:
      the value of the force record component
    • torque

      public double torque()
      Returns the value of the torque record component.
      Returns:
      the value of the torque record component