Record Class EntityDimensions

java.lang.Object
java.lang.Record
net.minecraft.entity.EntityDimensions
Record Components:
width -
height -
eyeHeight -
attachments -
fixed -

public record EntityDimensions(float width, float height, float eyeHeight, EntityAttachments attachments, boolean fixed) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/EntityDimensions
intermediary net/minecraft/class_4048
official bvm
named width
intermediary comp_2185
official a
named height
intermediary comp_2186
official b
named eyeHeight
intermediary comp_2187
official c
named attachments
intermediary comp_2188
official d
named fixed
intermediary comp_2189
official e
  • Field Details

    • width

      private final float width
      The field for the width record component.
    • height

      private final float height
      The field for the height record component.
    • eyeHeight

      private final float eyeHeight
      The field for the eyeHeight record component.
    • attachments

      private final EntityAttachments attachments
      The field for the attachments record component.
    • fixed

      private final boolean fixed
      The field for the fixed record component.
  • Constructor Details

    • EntityDimensions

      private EntityDimensions(float width, float height, boolean fixed)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/EntityDimensions;<init>(FFZ)V
      intermediary <init> Lnet/minecraft/class_4048;<init>(FFZ)V
      official <init> Lbvm;<init>(FFZ)V
    • EntityDimensions

      public EntityDimensions(float float2, float float3, float float4, EntityAttachments entityAttachments, boolean bool)
  • Method Details

    • getDefaultEyeHeight

      private static float getDefaultEyeHeight(float height)
      Mappings:
      Namespace Name Mixin selector
      named getDefaultEyeHeight Lnet/minecraft/entity/EntityDimensions;getDefaultEyeHeight(F)F
      intermediary method_55686 Lnet/minecraft/class_4048;method_55686(F)F
      official c Lbvm;c(F)F
    • getBoxAt

      public Box getBoxAt(Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named getBoxAt Lnet/minecraft/entity/EntityDimensions;getBoxAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
      intermediary method_30757 Lnet/minecraft/class_4048;method_30757(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
      official a Lbvm;a(Lfbx;)Lfbs;
    • getBoxAt

      public Box getBoxAt(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named getBoxAt Lnet/minecraft/entity/EntityDimensions;getBoxAt(DDD)Lnet/minecraft/util/math/Box;
      intermediary method_30231 Lnet/minecraft/class_4048;method_30231(DDD)Lnet/minecraft/class_238;
      official a Lbvm;a(DDD)Lfbs;
    • scaled

      public EntityDimensions scaled(float ratio)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/entity/EntityDimensions;scaled(F)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_18383 Lnet/minecraft/class_4048;method_18383(F)Lnet/minecraft/class_4048;
      official a Lbvm;a(F)Lbvm;
    • scaled

      public EntityDimensions scaled(float widthRatio, float heightRatio)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/entity/EntityDimensions;scaled(FF)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_19539 Lnet/minecraft/class_4048;method_19539(FF)Lnet/minecraft/class_4048;
      official a Lbvm;a(FF)Lbvm;
    • changing

      public static EntityDimensions changing(float width, float height)
      Mappings:
      Namespace Name Mixin selector
      named changing Lnet/minecraft/entity/EntityDimensions;changing(FF)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_18384 Lnet/minecraft/class_4048;method_18384(FF)Lnet/minecraft/class_4048;
      official b Lbvm;b(FF)Lbvm;
    • fixed

      public static EntityDimensions fixed(float width, float height)
      Mappings:
      Namespace Name Mixin selector
      named fixed Lnet/minecraft/entity/EntityDimensions;fixed(FF)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_18385 Lnet/minecraft/class_4048;method_18385(FF)Lnet/minecraft/class_4048;
      official c Lbvm;c(FF)Lbvm;
    • withEyeHeight

      public EntityDimensions withEyeHeight(float eyeHeight)
      Mappings:
      Namespace Name Mixin selector
      named withEyeHeight Lnet/minecraft/entity/EntityDimensions;withEyeHeight(F)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55685 Lnet/minecraft/class_4048;method_55685(F)Lnet/minecraft/class_4048;
      official b Lbvm;b(F)Lbvm;
    • withAttachments

      public EntityDimensions withAttachments(EntityAttachments.Builder attachments)
      Mappings:
      Namespace Name Mixin selector
      named withAttachments Lnet/minecraft/entity/EntityDimensions;withAttachments(Lnet/minecraft/entity/EntityAttachments$Builder;)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55684 Lnet/minecraft/class_4048;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/class_4048;
      official a Lbvm;a(Lbvl$a;)Lbvm;
    • 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.
    • width

      public float width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public float height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • eyeHeight

      public float eyeHeight()
      Returns the value of the eyeHeight record component.
      Returns:
      the value of the eyeHeight record component
    • attachments

      public EntityAttachments attachments()
      Returns the value of the attachments record component.
      Returns:
      the value of the attachments record component
    • fixed

      public boolean fixed()
      Returns the value of the fixed record component.
      Returns:
      the value of the fixed record component