Record Class EntityHitbox
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.state.EntityHitbox
- Record Components:
x0
-y0
-z0
-x1
-y1
-z1
-offsetX
-offsetY
-offsetZ
-red
-green
-blue
-
@Environment(CLIENT)
public record EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/state/EntityHitbox
intermediary net/minecraft/class_10932
official hlb
named x0
intermediary comp_3849
official a
named y0
intermediary comp_3850
official b
named z0
intermediary comp_3851
official c
named x1
intermediary comp_3852
official d
named y1
intermediary comp_3853
official e
named z1
intermediary comp_3854
official f
named offsetX
intermediary comp_3855
official g
named offsetY
intermediary comp_3856
official h
named offsetZ
intermediary comp_3857
official i
named red
intermediary comp_3858
official j
named green
intermediary comp_3859
official k
named blue
intermediary comp_3860
official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
The field for theblue
record component.private final float
The field for thegreen
record component.private final float
The field for theoffsetX
record component.private final float
The field for theoffsetY
record component.private final float
The field for theoffsetZ
record component.private final float
The field for thered
record component.private final double
The field for thex0
record component.private final double
The field for thex1
record component.private final double
The field for they0
record component.private final double
The field for they1
record component.private final double
The field for thez0
record component.private final double
The field for thez1
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityHitbox
(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue) EntityHitbox
(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7) -
Method Summary
Modifier and TypeMethodDescriptionfloat
blue()
Returns the value of theblue
record component.final boolean
Indicates whether some other object is "equal to" this one.float
green()
Returns the value of thegreen
record component.final int
hashCode()
Returns a hash code value for this object.float
offsetX()
Returns the value of theoffsetX
record component.float
offsetY()
Returns the value of theoffsetY
record component.float
offsetZ()
Returns the value of theoffsetZ
record component.float
red()
Returns the value of thered
record component.final String
toString()
Returns a string representation of this record class.double
x0()
Returns the value of thex0
record component.double
x1()
Returns the value of thex1
record component.double
y0()
Returns the value of they0
record component.double
y1()
Returns the value of they1
record component.double
z0()
Returns the value of thez0
record component.double
z1()
Returns the value of thez1
record component.
-
Field Details
-
x0
private final double x0The field for thex0
record component. -
y0
private final double y0The field for they0
record component. -
z0
private final double z0The field for thez0
record component. -
x1
private final double x1The field for thex1
record component. -
y1
private final double y1The field for they1
record component. -
z1
private final double z1The field for thez1
record component. -
offsetX
private final float offsetXThe field for theoffsetX
record component. -
offsetY
private final float offsetYThe field for theoffsetY
record component. -
offsetZ
private final float offsetZThe field for theoffsetZ
record component. -
red
private final float redThe field for thered
record component. -
green
private final float greenThe field for thegreen
record component. -
blue
private final float blueThe field for theblue
record component.
-
-
Constructor Details
-
EntityHitbox
public EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/entity/state/EntityHitbox;<init>(DDDDDDFFF)V
intermediary <init>
Lnet/minecraft/class_10932;<init>(DDDDDDFFF)V
official <init>
Lhlb;<init>(DDDDDDFFF)V
-
EntityHitbox
public EntityHitbox(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7)
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
x0
public double x0()Returns the value of thex0
record component.- Returns:
- the value of the
x0
record component
-
y0
public double y0()Returns the value of they0
record component.- Returns:
- the value of the
y0
record component
-
z0
public double z0()Returns the value of thez0
record component.- Returns:
- the value of the
z0
record component
-
x1
public double x1()Returns the value of thex1
record component.- Returns:
- the value of the
x1
record component
-
y1
public double y1()Returns the value of they1
record component.- Returns:
- the value of the
y1
record component
-
z1
public double z1()Returns the value of thez1
record component.- Returns:
- the value of the
z1
record component
-
offsetX
public float offsetX()Returns the value of theoffsetX
record component.- Returns:
- the value of the
offsetX
record component
-
offsetY
public float offsetY()Returns the value of theoffsetY
record component.- Returns:
- the value of the
offsetY
record component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZ
record component.- Returns:
- the value of the
offsetZ
record component
-
red
public float red()Returns the value of thered
record component.- Returns:
- the value of the
red
record component
-
green
public float green()Returns the value of thegreen
record component.- Returns:
- the value of the
green
record component
-
blue
public float blue()Returns the value of theblue
record component.- Returns:
- the value of the
blue
record component
-