me.huanmeng.opensource.bukkit.gui.button.EmptyButton Maven / Gradle / Ivy
package me.huanmeng.opensource.bukkit.gui.button;
import me.huanmeng.opensource.bukkit.gui.button.function.PlayerItemInterface;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* 2023/3/17
* Gui
* 仅显示型按钮
*
* @author huanmeng_qwq
*/
public class EmptyButton implements Button {
@NonNull
private final PlayerItemInterface userItemInterface;
public EmptyButton(@NonNull PlayerItemInterface userItemInterface) {
this.userItemInterface = userItemInterface;
}
@Override
@Nullable
public ItemStack getShowItem(@NonNull Player player) {
return userItemInterface.get(player);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy