Record Class NativeUiPresentation.Opacity
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiPresentation.Opacity
- Enclosing class:
NativeUiPresentation
-
Constructor Summary
ConstructorsConstructorDescriptionOpacity(float current, float potential) Creates an instance of aOpacityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatcurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thepotentialrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Opacity
public Opacity(float current, float potential) Creates an instance of aOpacityrecord class.- Parameters:
current- the value for thecurrentrecord componentpotential- the value for thepotentialrecord component
-
-
Method Details
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
current
public float current()Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
potential
public float potential()Returns the value of thepotentialrecord component.- Returns:
- the value of the
potentialrecord component
-