Record Class ClientRenderSubscriber.ItemGuideRenderData
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.client.subscribe.ClientRenderSubscriber.ItemGuideRenderData
- Enclosing class:
ClientRenderSubscriber
public static record ClientRenderSubscriber.ItemGuideRenderData(com.mojang.blaze3d.vertex.PoseStack stack, BoundingBox hitbox, float alpha, boolean isSelected, int light)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionItemGuideRenderData(com.mojang.blaze3d.vertex.PoseStack stack, BoundingBox hitbox, float alpha, boolean isSelected, int light) Creates an instance of aItemGuideRenderDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hitbox()Returns the value of thehitboxrecord component.booleanReturns the value of theisSelectedrecord component.intlight()Returns the value of thelightrecord component.com.mojang.blaze3d.vertex.PoseStackstack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemGuideRenderData
public ItemGuideRenderData(com.mojang.blaze3d.vertex.PoseStack stack, BoundingBox hitbox, float alpha, boolean isSelected, int light) Creates an instance of aItemGuideRenderDatarecord class.- Parameters:
stack- the value for thestackrecord componenthitbox- the value for thehitboxrecord componentalpha- the value for thealpharecord componentisSelected- the value for theisSelectedrecord componentlight- the value for thelightrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
stack
public com.mojang.blaze3d.vertex.PoseStack stack()Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
hitbox
Returns the value of thehitboxrecord component.- Returns:
- the value of the
hitboxrecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
isSelected
public boolean isSelected()Returns the value of theisSelectedrecord component.- Returns:
- the value of the
isSelectedrecord component
-
light
public int light()Returns the value of thelightrecord component.- Returns:
- the value of the
lightrecord component
-