SceneUpdateType enum

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

Файл: com/hypixel/hytale/protocol/packets/machinima/SceneUpdateType.java

Поля (1)

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

Методы (3)

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

Исходный код

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

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

class="kw">public enum SceneUpdateType {
   Update(0),
   Play(1),
   Stop(2),
   Frame(3),
   Save(4);

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

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

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

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