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, class_9066 attachments, boolean fixed) extends Record
Mappings:
Namespace Name
official blz
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 class_9066 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> Lblz;<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, class_9066 class_9066, boolean bool)
  • Method Details

    • method_55686

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

      public Box getBoxAt(Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz;a(Lemc;)Lelx;
      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 Lblz;a(DDD)Lelx;
      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 Lblz;a(F)Lblz;
      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 Lblz;a(FF)Lblz;
      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 Lblz;b(FF)Lblz;
      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 Lblz;c(FF)Lblz;
      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;
    • method_55685

      public EntityDimensions method_55685(float float2)
      Mappings:
      Namespace Name Mixin selector
      official b Lblz;b(F)Lblz;
      intermediary method_55685 Lnet/minecraft/class_4048;method_55685(F)Lnet/minecraft/class_4048;
      named method_55685 Lnet/minecraft/entity/EntityDimensions;method_55685(F)Lnet/minecraft/entity/EntityDimensions;
    • method_55684

      public EntityDimensions method_55684(class_9066.class_9067 class_9067)
      Mappings:
      Namespace Name Mixin selector
      official a Lblz;a(Lbly$a;)Lblz;
      intermediary method_55684 Lnet/minecraft/class_4048;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/class_4048;
      named method_55684 Lnet/minecraft/entity/EntityDimensions;method_55684(Lnet/minecraft/class_9066$class_9067;)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 class_9066 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