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 pose) 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 left, int right, int top, int bottom) 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-