Class CraftUIDesigner.Baked
-
- All Implemented Interfaces:
public final class CraftUIDesigner.BakedBakedDesigner: An immutable CraftUIDesigner with a set (baked) value.
val designer: CraftUIDesigner = ~~~ val context: CraftUIDesigner.Context = ~~~ val baked: BakedDesigner = CraftUIDesigner.bake(designer, context)- Since:
5.0.16
-
-
Field Summary
Fields Modifier and Type Field Description private final Componenttitleprivate final Pair<CoordinateComponent, ItemStack>makeButtonprivate final Map<CoordinateComponent, ItemStack>blankSlots
-
Constructor Summary
Constructors Constructor Description CraftUIDesigner.Baked(Component title, Pair<CoordinateComponent, ItemStack> makeButton, Map<CoordinateComponent, ItemStack> blankSlots)
-
Method Summary
Modifier and Type Method Description final ComponentgetTitle()final Pair<CoordinateComponent, ItemStack>getMakeButton()final Map<CoordinateComponent, ItemStack>getBlankSlots()final Unitapply(Inventory ui)Applies designer to a provided ui (inventory). final List<CoordinateComponent>craftSlots()Returns craft slots (6x6) final UnitisValid()Validates this baked designer. -
-
Constructor Detail
-
CraftUIDesigner.Baked
CraftUIDesigner.Baked(Component title, Pair<CoordinateComponent, ItemStack> makeButton, Map<CoordinateComponent, ItemStack> blankSlots)
- Parameters:
title- Title of UImakeButton- Make button coordinate and icon (item)blankSlots- Unclickable slot coordinates and icons
-
-
Method Detail
-
getTitle
final Component getTitle()
-
getMakeButton
final Pair<CoordinateComponent, ItemStack> getMakeButton()
-
getBlankSlots
final Map<CoordinateComponent, ItemStack> getBlankSlots()
-
apply
final Unit apply(Inventory ui)
Applies designer to a provided ui (inventory).
- Parameters:
ui- UI- Since:
5.0.16
-
craftSlots
final List<CoordinateComponent> craftSlots()
Returns craft slots (6x6)
- Returns:
List Craft slot coordinates list
- Since:
5.0.16
-
-
-
-