# UIComponent.context [← UIComponent](index.md) · [← Master](../../wiki.md) context(java.lang.String icon, java.lang.String action, java.lang.String label, UIComponent int color) Add a context menu item. abstract GuiElement create(Minecraft mc, UIContext context) protected void createContext(GuiSimpleContextMenu menu, GuiElement element, UIContext context) void deserializeNBT(NBTTagCompound tag) UIComponent enabled(boolean enabled) Toggle component's user input. java.util.Set getChanges() java.util.List getChildComponents() protected int getDefaultUpdateDelay() UIComponent h(int value) Set height in pixels. void handleChanges(UIContext context, NBTTagCompound changes, GuiElement element) UIComponent id(java.lang.String id) Set the ID of the component. protected boolean isDataReserved() UIComponent keybind(int keyCode, java.lang.String action, java.lang.String label) Add a keybind with no modifiers.