StillNeededSection interface

Пакет: com.hypixel.hytale.server.core.universe.world.worldgen

Файл: com/hypixel/hytale/server/core/universe/world/worldgen/IWorldGen.java

Методы (1)

МодификаторыВозвратСигнатура
abstract boolean testboolean test(int var1, int var2, int var3)

Исходный код

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

class="kw">import com.hypixel.hytale.component.Holder;
class="kw">import com.hypixel.hytale.math.vector.Transform;
class="kw">import com.hypixel.hytale.server.core.universe.world.spawn.FitToHeightMapSpawnProvider;
class="kw">import com.hypixel.hytale.server.core.universe.world.spawn.ISpawnProvider;
class="kw">import com.hypixel.hytale.server.core.universe.world.spawn.IndividualSpawnProvider;
class="kw">import com.hypixel.hytale.server.core.universe.world.storage.ChunkStore;
class="kw">import it.unimi.dsi.fastutil.longs.Long2FloatFunction;
class="kw">import java.util.concurrent.CompletableFuture;
class="kw">import java.util.function.LongPredicate;
class="kw">import javax.annotation.Nonnull;
class="kw">import javax.annotation.Nullable;

class="kw">public class="kw">interface IWorldGen {
   @Nullable
   WorldGenTimingsCollector getTimings();

   CompletableFuture<GeneratedChunk> generate(int var1, long var2, int var4, int var5, @Nullable LongPredicate var6, @Nullable Long2FloatFunction var7);

   @Deprecated
   Transform[] getSpawnPoints(int var1);

   @Nonnull
   class="kw">default ISpawnProvider getDefaultSpawnProvider(int var1) {
      class="kw">return new FitToHeightMapSpawnProvider(new IndividualSpawnProvider(this.getSpawnPoints(var1)));
   }

   class="kw">default void shutdown() {
   }

   class="kw">interface Cubic class="kw">extends IWorldGen {
      CompletableFuture<Holder<ChunkStore>> generate(
         int var1, int var2, int var3, int var4, @Nullable IWorldGen.StillNeededSection var5, @Nullable IWorldGen.SectionPriority var6
      );
   }

   @FunctionalInterface
   class="kw">interface SectionPriority {
      float LOWEST_PRIORITY = Float.MAX_VALUE;

      float fetchPriority(int var1, int var2, int var3);
   }

   @FunctionalInterface
   class="kw">interface StillNeededSection {
      boolean test(int var1, int var2, int var3);
   }
}