All Downloads are FREE. Search and download functionalities are using the official Maven repository.

space.maxus.flare.ui.compose.Placeholder Maven / Gradle / Ivy

The newest version!
package space.maxus.flare.ui.compose;

import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import space.maxus.flare.item.ItemProvider;

/**
 * A placeholder is a slot that can not be interacted with.
 * 
* See more in Flare docs: Placeholder */ public interface Placeholder extends ProviderRendered { /** * Constructs a new placeholder for an item provider * @param provider The item provider * @return A new placeholder with item provider */ @Contract("_ -> new") static @NotNull Placeholder of(ItemProvider provider) { return new PlaceholderImpl(provider); } /** * Constructs a new placeholder with a still item provider of this item * @param still Item to be used * @return A new placeholder with item */ @Contract("_ -> new") static @NotNull Placeholder of(ItemStack still) { return new PlaceholderImpl(ItemProvider.still(still)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy