Package net.minecraft.client.gui
Record Class ActiveTextCollector.Parameters
java.lang.Object
java.lang.Record
net.minecraft.client.gui.ActiveTextCollector.Parameters
- Enclosing interface:
ActiveTextCollector
public static record ActiveTextCollector.Parameters(Matrix3x2fc pose, float opacity, @Nullable ScreenRectangle scissor)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theopacityrecord component.private final Matrix3x2fcThe field for theposerecord component.private final @Nullable ScreenRectangleThe field for thescissorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameters(Matrix3x2fc p_457626_) Parameters(Matrix3x2fc pose, float opacity, @Nullable ScreenRectangle scissor) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatopacity()Returns the value of theopacityrecord component.pose()Returns the value of theposerecord component.@Nullable ScreenRectanglescissor()Returns the value of thescissorrecord component.final StringtoString()Returns a string representation of this record class.withOpacity(float opacity) withPose(Matrix3x2fc pose) withScale(float scale) withScissor(int minX, int maxX, int minY, int maxY) withScissor(ScreenRectangle scissor)
-
Field Details
-
pose
The field for theposerecord component. -
opacity
private final float opacityThe field for theopacityrecord component. -
scissor
The field for thescissorrecord component.
-
-
Constructor Details
-
Parameters
-
-
Method Details
-
withPose
-
withScale
-
withOpacity
-
withScissor
-
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 '=='. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-
scissor
Returns the value of thescissorrecord component.- Returns:
- the value of the
scissorrecord component
-