Interface CraftUIDesigner
-
- All Implemented Interfaces:
public interface CraftUIDesignerUI builder for CraftUI
Default UI implementation is in CraftUI. (companion object)
- Since:
5.0.16
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCraftUIDesigner.ContextContext for CraftUIDesigner.
public final classCraftUIDesigner.BakedBakedDesigner: An immutable CraftUIDesigner with a set (baked) value.
val designer: CraftUIDesigner = ~~~ val context: CraftUIDesigner.Context = ~~~ val baked: BakedDesigner = CraftUIDesigner.bake(designer, context)public classCraftUIDesigner.Companion
-
Method Summary
Modifier and Type Method Description Componenttitle(CraftUIDesigner.Context context)UI title Pair<CoordinateComponent, ItemStack>makeButton(CraftUIDesigner.Context context)Make button slot coordinate and make button item (icon) Map<CoordinateComponent, ItemStack>blankSlots(CraftUIDesigner.Context context)Blank slots coordinates and those item(icon)s -
-
Method Detail
-
title
Component title(CraftUIDesigner.Context context)
UI title
- Parameters:
context- Execution context- Returns:
Component Component of UI title (net.kyori.adventure)
- Since:
5.0.16
-
makeButton
Pair<CoordinateComponent, ItemStack> makeButton(CraftUIDesigner.Context context)
Make button slot coordinate and make button item (icon)
- Parameters:
context- Execution context- Returns:
Pair Pair of coordinate and item
- Since:
5.0.16
-
blankSlots
Map<CoordinateComponent, ItemStack> blankSlots(CraftUIDesigner.Context context)
Blank slots coordinates and those item(icon)s
- Parameters:
context- Execution context- Returns:
Map Relation of coordinate and item
- Since:
5.0.16
-
-
-
-