Examples of ClickType


Examples of org.bukkit.event.inventory.ClickType

        if ((clicked != null && clicked.getType() == Material.POTION) || (cursor != null && cursor.getType() == Material.POTION)) {
            AlchemyPotionBrewer.scheduleCheck(player, stand);
            return;
        }

        ClickType click = event.getClick();
        InventoryType.SlotType slot = event.getSlotType();

        if (click.isShiftClick()) {
            switch (slot) {
                case FUEL:
                    AlchemyPotionBrewer.scheduleCheck(player, stand);
                    return;
                case CONTAINER:
View Full Code Here

Examples of org.bukkit.event.inventory.ClickType

    }

    @Test
    public void testAction() {
        for (String[] testCase : actionMap) {
            ClickType clickType = ClickType.valueOf(testCase[0]);
            int slot = Integer.parseInt(testCase[1]);
            ItemStack cursor = parseItemStack(testCase[2]);
            ItemStack slotItem = parseItemStack(testCase[3]);
            String expected = testCase[4];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.