DebugShape enum

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

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

Поля (1)

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

Методы (3)

МодификаторыВозвратСигнатура
static DebugShape fromValueDebugShape 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 DebugShape {
   Sphere(0),
   Cylinder(1),
   Cone(2),
   Cube(3),
   Frustum(4),
   Sector(5),
   Disc(6),
   Donut(7);

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

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

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

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