Examples of SlotType


Examples of net.cis.common.model.shipdevice.SlotType

   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getText(Object object) {
    SlotType labelValue = ((Slot)object).getSlotType();
    String label = labelValue == null ? null : labelValue.toString();
    return label == null || label.length() == 0 ?
      getString("_UI_Slot_type") :
      getString("_UI_Slot_type") + " " + label;
  }
View Full Code Here

Examples of net.cis.common.model.shipdevice.SlotType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setSlotType(SlotType newSlotType) {
    SlotType oldSlotType = slotType;
    slotType = newSlotType == null ? SLOT_TYPE_EDEFAULT : newSlotType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, StructurePackage.SLOT__SLOT_TYPE, oldSlotType, slotType));
  }
View Full Code Here

Examples of net.cis.common.model.shipdevice.SlotType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setType(SlotType newType) {
    SlotType oldType = type;
    type = newType == null ? TYPE_EDEFAULT : newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ShipdevicePackage.ABSTRACT_SHIP_DEVICE__TYPE, oldType, type));
  }
View Full Code Here

Examples of org.bukkit.event.inventory.InventoryType.SlotType

        // Proceed only if this is a CraftingInventory
        if (!(event.getInventory() instanceof CraftingInventory))
            return;

        // Store the slot type that was clicked
        SlotType slotType = event.getSlotType();

        // Proceed only if a CRAFTING or RESULT slot was clicked
        if (slotType.equals(InventoryType.SlotType.CRAFTING) ||
            slotType.equals(InventoryType.SlotType.RESULT)) {

            CraftingInventory inventory = (CraftingInventory) event.getInventory();
            Player player = (Player) event.getWhoClicked();

            // If the RESULT slot was shift-clicked, emulate
            // shift click behavior for it
            if (slotType.equals(InventoryType.SlotType.RESULT) &&
                event.isShiftClick()) {
                emulateSpecialRecipeResultShiftClick(inventory, player);
            }
            // Otherwise check for special recipe matches
            else {
View Full Code Here

Examples of org.bukkit.event.inventory.InventoryType.SlotType

    System.out.println("event.getSlot() "+event.getSlot());
    */
   
    boolean isShiftClick = event.isShiftClick();
    InventoryType inventoryType = event.getInventory().getType();
    SlotType slotType = event.getSlotType();
    ItemStack cursor = event.getCursor();
    ItemStack currentItem = event.getCurrentItem();
   
    if (isShiftClick)
    {
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.