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
official brk
intermediary net/minecraft/class_4048
named net/minecraft/entity/EntityDimensions
official a
intermediary comp_2185
named width
official b
intermediary comp_2186
named height
official c
intermediary comp_2187
named eyeHeight
official d
intermediary comp_2188
named attachments
official e
intermediary comp_2189
named fixed
  • 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
      official <init> Lbrk;<init>(FFZ)V
      intermediary <init> Lnet/minecraft/class_4048;<init>(FFZ)V
      named <init> Lnet/minecraft/entity/EntityDimensions;<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
      official c Lbrk;c(F)F
      intermediary method_55686 Lnet/minecraft/class_4048;method_55686(F)F
      named getDefaultEyeHeight Lnet/minecraft/entity/EntityDimensions;getDefaultEyeHeight(F)F
    • getBoxAt

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

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

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

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

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

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

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

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