CustomPageEventType enum

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

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

Поля (1)

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

Методы (3)

МодификаторыВозвратСигнатура
static CustomPageEventType fromValueCustomPageEventType 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 CustomPageEventType {
   Acknowledge(0),
   Data(1),
   Dismiss(2);

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

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

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

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