OriginSource enum

Пакет: com.hypixel.hytale.server.core.modules.interaction.interaction.config

Файл: com/hypixel/hytale/server/core/modules/interaction/interaction/config/OriginSource.java

Поля (1)

МодификаторыТипИмя
ENTITY, BLOCK

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.core.modules.interaction.interaction.config;

class="kw">import com.hypixel.hytale.codec.codecs.EnumCodec;
class="kw">import javax.annotation.Nonnull;

class="kw">public enum OriginSource {
   ENTITY,
   BLOCK;

   @Nonnull
   class="kw">public class="kw">static class="kw">final EnumCodec<OriginSource> CODEC = new EnumCodec<>(OriginSource.class)
      .documentKey(ENTITY, "The origin will be based on the position of the entity performing the interaction.")
      .documentKey(BLOCK, "The origin will be based on the position of the targeted block.");

   OriginSource() {
   }
}