ZoneFileContext

public class ZoneFileContext extends FileContext

Class ZoneFileContext. Provides zonefilecontext functionality for the Hytale server.

java.lang.Object > FileContext > ZoneFileContext

Field Summary

element

final JsonElement element

Field element.

object

final JsonObject object

Field object.

filePath

final String filePath

Field filePath.

nameStart

final int nameStart

Field nameStart.

nameEnd

final int nameEnd

Field nameEnd.

zoneName

final String zoneName

Field zoneName.

zoneRegistry

final Registry zoneRegistry

Field zoneRegistry.

Method Detail

ZoneFileContext

public public ZoneFileContext (final int id, final String name, final Path filepath, final FileLoadingContext context)

Method ZoneFileContext.

Parameters:
final int id
final String name
final Path filepath
final FileLoadingContext context

getTileBiomes

public Registry getTileBiomes ()

Method getTileBiomes.

getCustomBiomes

public Registry getCustomBiomes ()

Method getCustomBiomes.

getBiomes

public Registry getBiomes (@Nonnull final BiomeFileContext.Type type)

Method getBiomes.

Parameters:
@Nonnull final BiomeFileContext.Type type

switch

public return switch (type)

Method switch.

Parameters:
type type

matchContext

public ZoneFileContext matchContext (@Nullable final JsonElement json, final String key)

Method matchContext.

Parameters:
@Nullable final JsonElement json
final String key

createBiome

protected BiomeFileContext createBiome (final String name, final Path path, final BiomeFileContext.Type type)

Method createBiome.

Parameters:
final String name
final Path path
final BiomeFileContext.Type type

BiomeFileContext

public new BiomeFileContext (this.getParentContext()

Method BiomeFileContext.

Parameters:
this.getParentContext( this.getParentContext(