Package studio.mevera.lotus.api.content
Interface Content
- All Superinterfaces:
ContentEditor,ContentView
- All Known Implementing Classes:
DefaultContent
Full read-write content for a menu.
This combines the read-only view from ContentView with the write operations from
ContentEditor.
-
Method Summary
Modifier and TypeMethodDescriptionPlaces the button into the first empty slot, returning that slot if one was found.static @NotNull ContentBuilderCreates a builder for the given capacity.static @NotNull ContentCreates an empty content object for the given capacity.@NotNull ContentmergeWith(@NotNull ContentView other) Returns a new content object with entries from both sources.voidtrimTo(int maxButtons) Removes extra buttons after the given limit is reached.Methods inherited from interface studio.mevera.lotus.api.content.ContentEditor
clear, fill, placeSpanning, remove, set, update
-
Method Details
-
mergeWith
Returns a new content object with entries from both sources.Entries from
otheroverwrite entries from this content when both use the same slot. -
trimTo
void trimTo(int maxButtons) Removes extra buttons after the given limit is reached. -
add
Places the button into the first empty slot, returning that slot if one was found. -
empty
Creates an empty content object for the given capacity. -
builder
Creates a builder for the given capacity.
-