Interface EditorOps

All Known Implementing Classes:
ColorPicker, Panel

public interface EditorOps
This interface can be implemented by widgets, so other config editors can control them. For example, an editor for optionals can disable a widget if the user unsets the checkbox, so no value should be available.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    enabled(boolean enabled)
    Marks a widget as enabled or disabled.
    static EditorOps
    wrap(net.minecraft.client.gui.components.events.GuiEventListener widget)
    Wraps a GuiEventListener into matching editor ops.
  • Method Details

    • enabled

      default void enabled(boolean enabled)
      Marks a widget as enabled or disabled.
    • wrap

      static EditorOps wrap(net.minecraft.client.gui.components.events.GuiEventListener widget)
      Wraps a GuiEventListener into matching editor ops.