Package space.maxus.flare.ui.compose
Interface Placeholder
- All Superinterfaces:
Composable,ComposableLike,ProviderRendered
A placeholder is a slot that can not be interacted with.
See more in Flare docs: Placeholder
See more in Flare docs: Placeholder
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull Placeholderof(org.bukkit.inventory.ItemStack still) Constructs a new placeholder with a still item provider of this itemstatic @NotNull Placeholderof(ItemProvider provider) Constructs a new placeholder for an item providerMethods inherited from interface space.maxus.flare.ui.Composable
asComposable, bind, click, context, contextOrNull, destroy, drag, injectRoot, inside, into, leftClick, markDirty, restore, rightClick, root, shiftFrom, shiftInto, viewerMethods inherited from interface space.maxus.flare.ui.compose.ProviderRendered
getProvider, renderAt
-
Method Details
-
of
Constructs a new placeholder for an item provider- Parameters:
provider- The item provider- Returns:
- A new placeholder with item provider
-
of
Constructs a new placeholder with a still item provider of this item- Parameters:
still- Item to be used- Returns:
- A new placeholder with item
-