Package me.hsgamer.bettergui.button
Class WrappedPredicateButton
- java.lang.Object
-
- me.hsgamer.bettergui.api.button.BaseWrappedButton<me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton>
-
- me.hsgamer.bettergui.button.WrappedPredicateButton
-
- All Implemented Interfaces:
WrappedButton,MenuElement,me.hsgamer.hscore.minecraft.gui.button.Button,me.hsgamer.hscore.ui.property.Initializable
public class WrappedPredicateButton extends BaseWrappedButton<me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton>
-
-
Field Summary
-
Fields inherited from class me.hsgamer.bettergui.api.button.BaseWrappedButton
button, menu, name, options
-
-
Constructor Summary
Constructors Constructor Description WrappedPredicateButton(ButtonBuilder.Input input)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidapplyRequirement(Map<String,Object> section, WrappedButton wrappedButton, Set<UUID> checked, me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton predicateButton)protected me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButtoncreateButton(Map<String,Object> section)Create the button from the sectionvoidrefresh(UUID uuid)Refresh the button for the unique id-
Methods inherited from class me.hsgamer.bettergui.api.button.BaseWrappedButton
display, getMenu, getName, getOptions, init, stop
-
-
-
-
Constructor Detail
-
WrappedPredicateButton
public WrappedPredicateButton(ButtonBuilder.Input input)
-
-
Method Detail
-
applyRequirement
public static void applyRequirement(Map<String,Object> section, WrappedButton wrappedButton, Set<UUID> checked, me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton predicateButton)
-
createButton
protected me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton createButton(Map<String,Object> section)
Description copied from class:BaseWrappedButtonCreate the button from the section- Specified by:
createButtonin classBaseWrappedButton<me.hsgamer.hscore.minecraft.gui.button.impl.PredicateButton>- Parameters:
section- the section- Returns:
- the button
-
refresh
public void refresh(UUID uuid)
Description copied from interface:WrappedButtonRefresh the button for the unique id- Parameters:
uuid- the unique id
-
-