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

me.huanmeng.opensource.bukkit.gui.event.InventorySwitchEvent Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package me.huanmeng.opensource.bukkit.gui.event;

import org.bukkit.event.inventory.ClickType;
import org.bukkit.event.inventory.InventoryAction;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryType;
import org.bukkit.inventory.InventoryView;
import org.checkerframework.checker.nullness.qual.NonNull;

/**
 * 2023/3/17
* Gui
* * @author huanmeng_qwq */ @SuppressWarnings("unused") public class InventorySwitchEvent extends InventoryClickEvent { private boolean disable; public InventorySwitchEvent(@NonNull InventoryView view, InventoryType.@NonNull SlotType type, int slot, @NonNull ClickType click, @NonNull InventoryAction action) { super(view, type, slot, click, action); } public InventorySwitchEvent(@NonNull InventoryView view, InventoryType.@NonNull SlotType type, int slot, @NonNull ClickType click, @NonNull InventoryAction action, int key) { super(view, type, slot, click, action, key); } public boolean disable() { return disable; } @NonNull public InventorySwitchEvent disable(boolean disable) { this.disable = disable; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy