Record Class DialogModel.Range
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.dialog.DialogModel.Range
- Record Components:
key- input keylabel- rendered labelstart- inclusive minimumend- inclusive maximumstep- positive incrementinitial- initial value
- All Implemented Interfaces:
DialogModel.Input
- Enclosing class:
DialogModel
@Internal
public static record DialogModel.Range(String key, net.kyori.adventure.text.Component label, float start, float end, float step, float initial)
extends Record
implements DialogModel.Input
Single-precision numeric control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theendrecord component.private final floatThe field for theinitialrecord component.private final StringThe field for thekeyrecord component.private final net.kyori.adventure.text.ComponentThe field for thelabelrecord component.private final floatThe field for thestartrecord component.private final floatThe field for thesteprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatinitial()Returns the value of theinitialrecord component.key()Returns the value of thekeyrecord component.net.kyori.adventure.text.Componentlabel()Returns the value of thelabelrecord component.floatstart()Returns the value of thestartrecord component.floatstep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
key
-
label
private final net.kyori.adventure.text.Component labelThe field for thelabelrecord component. -
start
private final float startThe field for thestartrecord component. -
end
private final float endThe field for theendrecord component. -
step
private final float stepThe field for thesteprecord component. -
initial
private final float initialThe field for theinitialrecord component.
-
-
Constructor Details
-
Range
public Range(String key, net.kyori.adventure.text.Component label, float start, float end, float step, float initial) Creates an instance of aRangerecord class.
-
-
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. -
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceDialogModel.Input- Returns:
- the value of the
keyrecord component
-
label
public net.kyori.adventure.text.Component label()Returns the value of thelabelrecord component.- Specified by:
labelin interfaceDialogModel.Input- Returns:
- the value of the
labelrecord component
-
start
-
end
-
step
-
initial
-