public class Gestures extends Plugin implements Listener {
ModelInformation gestureobj;
ImageInformation gesture1icon;
ImageInformation gesture2icon;
ImageInformation gesture3icon;
ImageInformation gesture4icon;
ImageInformation gesture5icon;
ImageInformation gesture6icon;
ImageInformation gesture7icon;
ImageInformation gesturetexture;
gestureobj = new ModelInformation(getPath() + "/assets/gesture.obj");
gesture1icon = new ImageInformation(getPath() + "/assets/1.png");
gesture2icon = new ImageInformation(getPath() + "/assets/2.png");
gesture3icon = new ImageInformation(getPath() + "/assets/3.png");
gesture4icon = new ImageInformation(getPath() + "/assets/4.png");
gesture5icon = new ImageInformation(getPath() + "/assets/5.png");
gesture6icon = new ImageInformation(getPath() + "/assets/6.png");
gesture7icon = new ImageInformation(getPath() + "/assets/7.png");
gesturetexture = new ImageInformation(getPath() + "/assets/gesture.jpg");
registerEventListener(this);
public void onDisable() {}
gesture1 = new CustomItem("gesture1", "Flipping_The_Bird");
gesture1.setModel(gestureobj, gesturetexture, 0.20f);
gesture1.setIcon(gesture1icon);
gesture1.setMaxStacksize(1);
gesture1.setHand(CustomItem.Hand.None);
gesture1.setPlayerIdleAnimation(Animation.Idle1);
gesture1.setPrimaryAction(Animation.Gesture1, 0, null);
gesture1.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture2", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture1);
gesture2 = new CustomItem("gesture2", "Wave");
gesture2.setModel(gestureobj, gesturetexture, 0.20f);
gesture2.setIcon(gesture2icon);
gesture2.setMaxStacksize(1);
gesture2.setHand(CustomItem.Hand.None);
gesture2.setPlayerIdleAnimation(Animation.Idle1);
gesture2.setPrimaryAction(Animation.Gesture2, 0, null);
gesture2.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture3", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture2);
CustomRecipe gesturer = new CustomRecipe("gesture2", CustomRecipe.Type.CustomItem, 0, "crafting stations", "workbench");
gesturer.setIngredients("1x lumber");
gesturer.setTargetCount(1);
gesturer.setPreviewSize(0.35f);
gesturer.setLocalizedDescriptions("Used for Gesture's");
gesturer.setLocalizedNames("Gestures");
gesturer.setLocalizedCategories("WTG");
getServer().registerCustomRecipe(gesturer);
gesture3 = new CustomItem("gesture3", "Thumbs_Up");
gesture3.setModel(gestureobj, gesturetexture, 0.20f);
gesture3.setIcon(gesture3icon);
gesture3.setMaxStacksize(1);
gesture3.setHand(CustomItem.Hand.None);
gesture3.setPlayerIdleAnimation(Animation.Idle1);
gesture3.setPrimaryAction(Animation.Gesture3, 0, null);
gesture3.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture4", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture3);
gesture4 = new CustomItem("gesture4", "Thumbs_Middle");
gesture4.setModel(gestureobj, gesturetexture, 0.20f);
gesture4.setIcon(gesture4icon);
gesture4.setMaxStacksize(1);
gesture4.setHand(CustomItem.Hand.None);
gesture4.setPlayerIdleAnimation(Animation.Idle1);
gesture4.setPrimaryAction(Animation.Gesture4, 0, null);
gesture4.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture5", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture4);
gesture5 = new CustomItem("gesture5", "Thumbs_Down");
gesture5.setModel(gestureobj, gesturetexture, 0.20f);
gesture5.setIcon(gesture5icon);
gesture5.setMaxStacksize(1);
gesture5.setHand(CustomItem.Hand.None);
gesture5.setPlayerIdleAnimation(Animation.Idle1);
gesture5.setPrimaryAction(Animation.Gesture5, 0, null);
gesture5.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture6", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture5);
gesture6 = new CustomItem("gesture6", "Glory");
gesture6.setModel(gestureobj, gesturetexture, 0.20f);
gesture6.setIcon(gesture6icon);
gesture6.setMaxStacksize(1);
gesture6.setHand(CustomItem.Hand.None);
gesture6.setPlayerIdleAnimation(Animation.Idle1);
gesture6.setPrimaryAction(Animation.Gesture6, 0, null);
gesture6.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture7", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture6);
gesture7 = new CustomItem("gesture7", "Facepalm");
gesture7.setModel(gestureobj, gesturetexture, 0.20f);
gesture7.setIcon(gesture7icon);
gesture7.setMaxStacksize(1);
gesture7.setHand(CustomItem.Hand.None);
gesture7.setPlayerIdleAnimation(Animation.Idle1);
gesture7.setPrimaryAction(Animation.Gesture7, 0, null);
gesture7.setSecondaryAction(Animation.Idle1, 0, (player, collision)->{
player.getInventory().removeItem(player.getInventory().getQuickslotFocus(), Inventory.SlotType.Quickslot, 1);
player.getInventory().insertNewCustomItem("gesture1", 0, 1, 0, SlotType.Quickslot);
getServer().registerCustomItem(gesture7);