me.huanmeng.opensource.bukkit.gui.slot.impl.slots.ArraySlots Maven / Gradle / Ivy
package me.huanmeng.opensource.bukkit.gui.slot.impl.slots;
import me.huanmeng.opensource.bukkit.gui.AbstractGui;
import me.huanmeng.opensource.bukkit.gui.slot.Slot;
import me.huanmeng.opensource.bukkit.gui.slot.Slots;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* 2023/3/17
* Gui
*
* @author huanmeng_qwq
*/
public class ArraySlots implements Slots {
@NonNull
private final Slot[] slots;
public ArraySlots(@NonNull Slot[] slots) {
this.slots = slots;
}
@Override
public <@NonNull G extends AbstractGui<@NonNull G>> Slot[] slots(@NonNull G gui) {
return slots;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy