Record Class NativeUiPresentation.Draw
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiPresentation.Draw
- Enclosing class:
NativeUiPresentation
public static record NativeUiPresentation.Draw(NativeUiLayout.Box box, float alpha, float potential, boolean enabled)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDraw(NativeUiLayout.Box box, float alpha, float potential, boolean enabled) Creates an instance of aDrawrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.box()Returns the value of theboxrecord component.booleanenabled()Returns the value of theenabledrecord 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
-
Draw
Creates an instance of aDrawrecord class.- Parameters:
box- the value for theboxrecord componentalpha- the value for thealpharecord componentpotential- the value for thepotentialrecord componentenabled- the value for theenabledrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
potential
public float potential()Returns the value of thepotentialrecord component.- Returns:
- the value of the
potentialrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-