Interface ValueEditor

All Known Implementing Classes:
BooleanEditor, ColorEditor, EnumEditor, ListEditor, SliderEditor, TextEditor

public interface ValueEditor
The widget editing one value in the config screen. The screen positions and draws it, and greys it out when the value can't be edited.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Builds an editor for a slot, at the given size.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Shows the slot's value again after it changed elsewhere (undo, reset, a preset, the server).
    default void
    setActive(boolean active)
    Whether the player can change the value right now.
    net.minecraft.client.gui.components.AbstractWidget
     
  • Method Details

    • widget

      net.minecraft.client.gui.components.AbstractWidget widget()
    • refresh

      void refresh()
      Shows the slot's value again after it changed elsewhere (undo, reset, a preset, the server).
    • setActive

      default void setActive(boolean active)
      Whether the player can change the value right now.