Class BaseWrappedButton<B extends me.hsgamer.hscore.minecraft.gui.button.Button>

    • Field Detail

      • menu

        protected final Menu menu
      • name

        protected final String name
      • button

        protected B extends me.hsgamer.hscore.minecraft.gui.button.Button button
    • Constructor Detail

      • BaseWrappedButton

        protected BaseWrappedButton​(ButtonBuilder.Input input)
        Create a new wrapped button
        Parameters:
        input - the input
    • Method Detail

      • createButton

        protected abstract B createButton​(Map<String,​Object> section)
        Create the button from the section
        Parameters:
        section - the section
        Returns:
        the button
      • getOptions

        public Map<String,​Object> getOptions()
        Get the options of the button
        Returns:
        the options
      • getMenu

        public Menu getMenu()
        Description copied from interface: MenuElement
        Get the menu containing the element
        Specified by:
        getMenu in interface MenuElement
        Returns:
        the menu
      • display

        @Nullable
        public @Nullable me.hsgamer.hscore.minecraft.gui.button.DisplayButton display​(@NotNull
                                                                                      @NotNull UUID uuid)
        Specified by:
        display in interface me.hsgamer.hscore.minecraft.gui.button.Button
      • init

        public void init()
        Specified by:
        init in interface me.hsgamer.hscore.ui.property.Initializable
      • stop

        public void stop()
        Specified by:
        stop in interface me.hsgamer.hscore.ui.property.Initializable