MovementType enum

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

Файл: com/hypixel/hytale/protocol/MovementType.java

Поля (1)

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

Методы (3)

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

Исходный код

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

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

class="kw">public enum MovementType {
   None(0),
   Idle(1),
   Crouching(2),
   Walking(3),
   Running(4),
   Sprinting(5),
   Climbing(6),
   Swimming(7),
   Flying(8),
   Sliding(9),
   Rolling(10),
   Mounting(11),
   SprintMounting(12);

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

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

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

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