space.maxus.flare.item.StillItemProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flare Show documentation
Show all versions of flare Show documentation
Reactive Spigot Inventory UI Library
The newest version!
package space.maxus.flare.item;
import lombok.Data;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.Nullable;
/**
* An item provider that constantly returns the same stack.
*
* NOTE: the stack returned is not cloned.
*/
@Data
public class StillItemProvider implements ItemProvider {
private final @Nullable ItemStack stack;
@Override
public ItemStack provide() {
return stack;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy