Package net.minecraft.client.options
Class CyclingOption
java.lang.Object
net.minecraft.client.options.Option
net.minecraft.client.options.CyclingOption
@Environment(CLIENT) public class CyclingOption extends Option
-
Field Summary
Fields Modifier and Type Field Description private BiFunction<GameOptions,CyclingOption,Text>messageProviderprivate BiConsumer<GameOptions,Integer>setterFields inherited from class net.minecraft.client.options.Option
AO, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGESTIONS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY_INSTANT, CHAT_HEIGHT_FOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_WIDTH, CLOUDS, DISCRETE_MOUSE_SCROLL, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_DISTANCE, SATURATION, SENSITIVITY, SNEAK_TOGGLED, SNOOPER, SPRINT_TOGGLED, SUBTITLES, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOUCHSCREEN, VIEW_BOBBING, VISIBILITY, VSYNC -
Constructor Summary
Constructors Constructor Description CyclingOption(String key, BiConsumer<GameOptions,Integer> setter, BiFunction<GameOptions,CyclingOption,Text> messageProvider) -
Method Summary
Modifier and Type Method Description AbstractButtonWidgetcreateButton(GameOptions options, int x, int y, int width)voidcycle(GameOptions options, int amount)TextgetMessage(GameOptions options)Methods inherited from class net.minecraft.client.options.Option
getDisplayPrefix, method_29618, method_29619
-
Field Details
-
Constructor Details
-
CyclingOption
public CyclingOption(String key, BiConsumer<GameOptions,Integer> setter, BiFunction<GameOptions,CyclingOption,Text> messageProvider)
-
-
Method Details
-
cycle
-
createButton
- Specified by:
createButtonin classOption
-
getMessage
-