EasingType enum

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

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

Поля (1)

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

Методы (3)

МодификаторыВозвратСигнатура
static EasingType fromValueEasingType 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 EasingType {
   Linear(0),
   QuadIn(1),
   QuadOut(2),
   QuadInOut(3),
   CubicIn(4),
   CubicOut(5),
   CubicInOut(6),
   QuartIn(7),
   QuartOut(8),
   QuartInOut(9),
   QuintIn(10),
   QuintOut(11),
   QuintInOut(12),
   SineIn(13),
   SineOut(14),
   SineInOut(15),
   ExpoIn(16),
   ExpoOut(17),
   ExpoInOut(18),
   CircIn(19),
   CircOut(20),
   CircInOut(21),
   ElasticIn(22),
   ElasticOut(23),
   ElasticInOut(24),
   BackIn(25),
   BackOut(26),
   BackInOut(27),
   BounceIn(28),
   BounceOut(29),
   BounceInOut(30);

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

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

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

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