ModifyEvents interface
Пакет: com.hypixel.hytale.builtin.worldgen.modifier.event
Файл: com/hypixel/hytale/builtin/worldgen/modifier/event/ModifyEvents.java
Методы (10)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
|
public Content.Type |
typepublic Content.Type type() |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale.builtin.worldgen.modifier.event;
class="kw">import com.hypixel.hytale.builtin.worldgen.modifier.content.Content;
class="kw">import com.hypixel.hytale.procedurallib.json.SeedString;
class="kw">import com.hypixel.hytale.server.worldgen.SeedStringResource;
class="kw">import com.hypixel.hytale.server.worldgen.cave.CaveNodeType;
class="kw">import com.hypixel.hytale.server.worldgen.cave.CaveType;
class="kw">import com.hypixel.hytale.server.worldgen.cave.prefab.CavePrefabContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.CoverContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.EnvironmentContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.LayerContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.PrefabContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.TintContainer;
class="kw">import com.hypixel.hytale.server.worldgen.container.WaterContainer;
class="kw">import com.hypixel.hytale.server.worldgen.loader.context.BiomeFileContext;
class="kw">import com.hypixel.hytale.server.worldgen.loader.context.CaveFileContext;
class="kw">import java.util.List;
class="kw">import javax.annotation.Nonnull;
class="kw">public class="kw">interface ModifyEvents {
record BiomeCovers(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<CoverContainer.CoverContainerEntry> entries,
@Nonnull ModifyEvent.ContentLoader<CoverContainer.CoverContainerEntry> loader
) class="kw">implements ModifyEvent<CoverContainer.CoverContainerEntry> {
class="kw">public BiomeCovers {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_COVER;
}
}
record BiomeDynamicLayers(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<LayerContainer.DynamicLayer> entries,
@Nonnull ModifyEvent.ContentLoader<LayerContainer.DynamicLayer> loader
) class="kw">implements ModifyEvent<LayerContainer.DynamicLayer> {
class="kw">public BiomeDynamicLayers {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_DYNAMIC_LAYER;
}
}
record BiomeEnvironments(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<EnvironmentContainer.EnvironmentContainerEntry> entries,
@Nonnull ModifyEvent.ContentLoader<EnvironmentContainer.EnvironmentContainerEntry> loader
) class="kw">implements ModifyEvent<EnvironmentContainer.EnvironmentContainerEntry> {
class="kw">public BiomeEnvironments {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_ENVIRONMENT;
}
}
record BiomeFluids(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<WaterContainer.Entry> entries,
@Nonnull ModifyEvent.ContentLoader<WaterContainer.Entry> loader
) class="kw">implements ModifyEvent<WaterContainer.Entry> {
class="kw">public BiomeFluids {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_FLUID;
}
}
record BiomePrefabs(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<PrefabContainer.PrefabContainerEntry> entries,
@Nonnull ModifyEvent.ContentLoader<PrefabContainer.PrefabContainerEntry> loader
) class="kw">implements ModifyEvent<PrefabContainer.PrefabContainerEntry> {
class="kw">public BiomePrefabs {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_PREFAB;
}
}
record BiomeStaticLayers(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<LayerContainer.StaticLayer> entries,
@Nonnull ModifyEvent.ContentLoader<LayerContainer.StaticLayer> loader
) class="kw">implements ModifyEvent<LayerContainer.StaticLayer> {
class="kw">public BiomeStaticLayers {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_STATIC_LAYER;
}
}
record BiomeTints(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull BiomeFileContext file,
@Nonnull List<TintContainer.TintContainerEntry> entries,
@Nonnull ModifyEvent.ContentLoader<TintContainer.TintContainerEntry> loader
) class="kw">implements ModifyEvent<TintContainer.TintContainerEntry> {
class="kw">public BiomeTints {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.BIOME_TINT;
}
}
record CaveCovers(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull CaveFileContext file,
@Nonnull List<CaveNodeType.CaveNodeCoverEntry> entries,
@Nonnull ModifyEvent.ContentLoader<CaveNodeType.CaveNodeCoverEntry> loader
) class="kw">implements ModifyEvent<CaveNodeType.CaveNodeCoverEntry> {
class="kw">public CaveCovers {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.CAVE_COVER;
}
}
record CavePrefabs(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull CaveFileContext file,
@Nonnull List<CavePrefabContainer.CavePrefabEntry> entries,
@Nonnull ModifyEvent.ContentLoader<CavePrefabContainer.CavePrefabEntry> loader
) class="kw">implements ModifyEvent<CavePrefabContainer.CavePrefabEntry> {
class="kw">public CavePrefabs {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.CAVE_PREFAB;
}
}
record CaveTypes(
@Nonnull SeedString<SeedStringResource> seed,
@Nonnull CaveFileContext file,
@Nonnull List<CaveType> entries,
@Nonnull ModifyEvent.ContentLoader<CaveType> loader
) class="kw">implements ModifyEvent<CaveType> {
class="kw">public CaveTypes {
}
@Nonnull
@Override
class="kw">public Content.Type type() {
class="kw">return Content.Type.CAVE_TYPE;
}
}
}