ComponentUpdateType enum

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

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

Поля (1)

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

Методы (3)

МодификаторыВозвратСигнатура
static ComponentUpdateType fromValueComponentUpdateType 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 ComponentUpdateType {
   Nameplate(0),
   UIComponents(1),
   CombatText(2),
   Model(3),
   PlayerSkin(4),
   Item(5),
   Block(6),
   Equipment(7),
   EntityStats(8),
   Transform(9),
   MovementStates(10),
   EntityEffects(11),
   Interactions(12),
   DynamicLight(13),
   Interactable(14),
   Intangible(15),
   Invulnerable(16),
   RespondToHit(17),
   HitboxCollision(18),
   Repulsion(19),
   Prediction(20),
   Audio(21),
   Mounted(22),
   NewSpawn(23),
   ActiveAnimations(24),
   Prop(25),
   CarriedBlock(26),
   PreventInventoryAccess(27),
   PrefabPreview(28),
   PreventEmotes(29);

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

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

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

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