Package studio.mevera.lotus.api.content
Interface ContentEditor
- All Known Subinterfaces:
Content
- All Known Implementing Classes:
DefaultContent
public interface ContentEditor
Write operations for menu content.
This interface is separate from ContentView so read-only code does not get mutation
methods by accident.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all buttons.voidFills all slots in the mask with the same button.default voidplaceSpanning(@NotNull SpanningButton button) Places the same spanning button into every slot in its footprint.voidRemoves the button at the given slot.voidSets or clears the button at the given slot.voidupdate(@NotNull Slot slot, @NotNull UnaryOperator<Button> updater) Replaces the button at the given slot using the updater result.
-
Method Details
-
set
Sets or clears the button at the given slot. -
remove
Removes the button at the given slot. -
update
Replaces the button at the given slot using the updater result. -
fill
Fills all slots in the mask with the same button. -
placeSpanning
Places the same spanning button into every slot in its footprint. -
clear
void clear()Removes all buttons.
-