UVMotionCurveType enum

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

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

Поля (1)

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

Методы (3)

МодификаторыВозвратСигнатура
static UVMotionCurveType fromValueUVMotionCurveType 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 UVMotionCurveType {
   Constant(0),
   IncreaseLinear(1),
   IncreaseQuartIn(2),
   IncreaseQuartInOut(3),
   IncreaseQuartOut(4),
   DecreaseLinear(5),
   DecreaseQuartIn(6),
   DecreaseQuartInOut(7),
   DecreaseQuartOut(8);

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

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

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

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