PointShapeType enum

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

Файл: com/hypixel/hytale/protocol/packets/player/PointShapeType.java

Поля (1)

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

Методы (3)

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

Исходный код

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

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

class="kw">public enum PointShapeType {
   Block(0),
   Sphere(1);

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

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

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

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