CustomUIEventBindingType enum

Пакет: com.hypixel.hytale.protocol.packets.interface_

Файл: com/hypixel/hytale/protocol/packets/interface_/CustomUIEventBindingType.java

Поля (1)

МодификаторыТипИмя
final CustomUIEventBindingType[] VALUES

Методы (3)

МодификаторыВозвратСигнатура
static CustomUIEventBindingType fromValueCustomUIEventBindingType fromValue(int var0)
public int getValueint getValue()
if if(var0 >= 0 && var0 < VALUES.length)

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.protocol.packets.interface_;

class="kw">import com.hypixel.hytale.protocol.io.ProtocolException;

class="kw">public enum CustomUIEventBindingType {
   Activating(0),
   RightClicking(1),
   DoubleClicking(2),
   MouseEntered(3),
   MouseExited(4),
   ValueChanged(5),
   ElementReordered(6),
   Validating(7),
   Dismissing(8),
   FocusGained(9),
   FocusLost(10),
   KeyDown(11),
   MouseButtonReleased(12),
   SlotClicking(13),
   SlotDoubleClicking(14),
   SlotMouseEntered(15),
   SlotMouseExited(16),
   DragCancelled(17),
   Dropped(18),
   SlotMouseDragCompleted(19),
   SlotMouseDragExited(20),
   SlotClickReleaseWhileDragging(21),
   SlotClickPressWhileDragging(22),
   SelectedTabChanged(23);

   class="kw">public class="kw">static class="kw">final CustomUIEventBindingType[] VALUES = values();
   class="kw">private class="kw">final int value;

   CustomUIEventBindingType(int nullxx) {
      this.value = nullxx;
   }

   class="kw">public int getValue() {
      class="kw">return this.value;
   }

   class="kw">public class="kw">static CustomUIEventBindingType fromValue(int var0) {
      if (var0 >= 0 && var0 < VALUES.length) {
         class="kw">return VALUES[var0];
      } else {
         throw ProtocolException.invalidEnumValue("CustomUIEventBindingType", var0);
      }
   }
}