HudComponent enum

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

Файл: com/hypixel/hytale/protocol/packets/interface_/HudComponent.java

Поля (1)

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

Методы (3)

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

Исходный код

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

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

class="kw">public enum HudComponent {
   Hotbar(0),
   StatusIcons(1),
   Reticle(2),
   Chat(3),
   Requests(4),
   Notifications(5),
   KillFeed(6),
   InputBindings(7),
   PlayerList(8),
   EventTitle(9),
   Compass(10),
   ObjectivePanel(11),
   PortalPanel(12),
   BuilderToolsLegend(13),
   Speedometer(14),
   UtilitySlotSelector(15),
   BlockVariantSelector(16),
   BuilderToolsMaterialSlotSelector(17),
   Stamina(18),
   AmmoIndicator(19),
   Health(20),
   Mana(21),
   Oxygen(22),
   Sleep(23),
   Abilities(24),
   BossBar(25);

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

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

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

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