ObjectiveGameplayConfig class

Пакет: com.hypixel.hytale.builtin.adventure.objectives.config.gameplayconfig

Файл: com/hypixel/hytale/builtin/adventure/objectives/config/gameplayconfig/ObjectiveGameplayConfig.java

Методы (1)

МодификаторыВозвратСигнатура
public Map<String, String> getStarterObjectiveLinePerWorldMap<String, String> getStarterObjectiveLinePerWorld()

Исходный код

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

class="kw">import com.hypixel.hytale.builtin.adventure.objectives.config.ObjectiveLineAsset;
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.codec.codecs.map.MapCodec;
class="kw">import com.hypixel.hytale.server.core.asset.type.gameplay.GameplayConfig;
class="kw">import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
class="kw">import java.util.Map;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class ObjectiveGameplayConfig {
   @Nonnull
   class="kw">public class="kw">static class="kw">final String ID = "Objective";
   @Nonnull
   class="kw">public class="kw">static class="kw">final BuilderCodec<ObjectiveGameplayConfig> CODEC = BuilderCodec.builder(ObjectiveGameplayConfig.class, ObjectiveGameplayConfig::new)
      .appendInherited(
         new KeyedCodec<>("StarterObjectiveLinePerWorld", new MapCodec<>(Codec.STRING, Object2ObjectOpenHashMap::new, true)),
         (var0, var1) -> var0.starterObjectiveLinePerWorld = var1,
         var0 -> var0.starterObjectiveLinePerWorld,
         (var0, var1) -> var0.starterObjectiveLinePerWorld = var1.starterObjectiveLinePerWorld
      )
      .addValidator(ObjectiveLineAsset.VALIDATOR_CACHE.getMapValueValidator())
      .add()
      .build();
   class="kw">protected Map<String, String> starterObjectiveLinePerWorld;

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

   @Nullable
   class="kw">public class="kw">static ObjectiveGameplayConfig get(@Nonnull GameplayConfig var0) {
      class="kw">return var0.getPluginConfig().get(ObjectiveGameplayConfig.class);
   }

   class="kw">public Map<String, String> getStarterObjectiveLinePerWorld() {
      class="kw">return this.starterObjectiveLinePerWorld;
   }
}