VoidEventStage class

Пакет: com.hypixel.hytale.builtin.portals.components.voidevent.config

Файл: com/hypixel/hytale/builtin/portals/components/voidevent/config/VoidEventStage.java

Методы (1)

МодификаторыВозвратСигнатура
public int getSecondsIntoint getSecondsInto()

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.portals.components.voidevent.config;

class="kw">import com.hypixel.hytale.codec.Codec;
class="kw">import com.hypixel.hytale.codec.KeyedCodec;
class="kw">import com.hypixel.hytale.codec.builder.BuilderCodec;
class="kw">import com.hypixel.hytale.server.core.asset.type.weather.config.Weather;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class VoidEventStage {
   @Nonnull
   class="kw">public class="kw">static class="kw">final BuilderCodec<VoidEventStage> CODEC = BuilderCodec.builder(VoidEventStage.class, VoidEventStage::new)
      .append(new KeyedCodec<>("SecondsInto", Codec.INTEGER), (var0, var1) -> var0.secondsInto = var1, var0 -> var0.secondsInto)
      .documentation("How many seconds into the void event does this stage becomes the active stage.")
      .add()
      .<String>append(new KeyedCodec<>("ForcedWeather", Codec.STRING), (var0, var1) -> var0.forcedWeatherId = var1, var0 -> var0.forcedWeatherId)
      .documentation("What weather to force during this stage.")
      .addValidator(Weather.VALIDATOR_CACHE.getValidator())
      .add()
      .build();
   class="kw">private int secondsInto;
   class="kw">private String forcedWeatherId;

   class="kw">public VoidEventStage() {
   }

   class="kw">public int getSecondsInto() {
      class="kw">return this.secondsInto;
   }

   @Nullable
   class="kw">public String getForcedWeatherId() {
      class="kw">return this.forcedWeatherId;
   }
}