mirror of https://github.com/FabricMC/yarn.git
Fix typo in SimpleOptions (#3094)
* Fix typo in SimpleOptions * Fix punctuation in SimpleOptions javadoc * TranslatableOption is an interface
This commit is contained in:
parent
7a9cbb55b2
commit
b594123e52
|
@ -46,11 +46,11 @@ CLASS net/minecraft/class_7172 net/minecraft/client/option/SimpleOption
|
|||
COMMENT <p>Slider option callbacks allow "modifiers" to be applied. The "slider progress value"
|
||||
COMMENT is the value used to calculate the slider's progress and must be linear. The real value,
|
||||
COMMENT simply called "value" in {@code withModifier} methods, is the value used in
|
||||
COMMENT {#link #getValue()} and passed to {@link #textGetter}.
|
||||
COMMENT {@link #getValue()} and passed to {@link #textGetter}.
|
||||
COMMENT
|
||||
COMMENT <h2 id="text">Text</h2>
|
||||
COMMENT Options themselves have names; the translation key of the option needs to be passed when
|
||||
COMMENT constructing this class, This corresponds to {@link #text}. Options also have the
|
||||
COMMENT constructing this class. This corresponds to {@link #text}. Options also have the
|
||||
COMMENT rendered text, composed of the option name and the value; the code obtains the value using
|
||||
COMMENT the {@code valueTextGetter} in the constructor. The getter takes the option's name and the
|
||||
COMMENT current value, and returns the text. Several static methods in {@link GameOptions} can
|
||||
|
@ -163,7 +163,7 @@ CLASS net/minecraft/class_7172 net/minecraft/client/option/SimpleOption
|
|||
COMMENT {@return the getter for the {@code valueTextGetter} parameter of the constructor
|
||||
COMMENT to use the value's text as the option's rendered text}
|
||||
COMMENT
|
||||
COMMENT @apiNote This requires the value to be an enum extending {@link TranslatableOption}.
|
||||
COMMENT @apiNote This requires the value to be an enum implementing {@link TranslatableOption}.
|
||||
CLASS class_7173 PotentialValuesBasedCallbacks
|
||||
COMMENT A set of callbacks for a cycling option.
|
||||
COMMENT
|
||||
|
|
Loading…
Reference in New Issue