FileLoadingContext

public class FileLoadingContext extends FileContext

Class FileLoadingContext. Provides fileloadingcontext functionality for the Hytale server.

java.lang.Object > FileContext > FileLoadingContext

Field Summary

zoneIdCounter

private int zoneIdCounter

Field zoneIdCounter.

biomeIdCounter

private int biomeIdCounter

Field biomeIdCounter.

Method Detail

FileLoadingContext

public public FileLoadingContext (@Nonnull final Path filepath)

Method FileLoadingContext.

Parameters:
@Nonnull final Path filepath

getParentContext

public FileLoadingContext getParentContext ()

Method getParentContext.

getZones

public Registry getZones ()

Method getZones.

getPrefabCategories

public Registry getPrefabCategories ()

Method getPrefabCategories.

createZone

protected ZoneFileContext createZone (final String name, final Path path)

Method createZone.

Parameters:
final String name
final Path path

ZoneFileContext

public new ZoneFileContext (this.updateZoneId(id)

Method ZoneFileContext.

Parameters:
this.updateZoneId(id this.updateZoneId(id

nextZoneId

protected int nextZoneId ()

Method nextZoneId.

nextBiomeId

protected int nextBiomeId ()

Method nextBiomeId.

updateZoneId

protected int updateZoneId (final int id)

Method updateZoneId.

Parameters:
final int id

updateBiomeId

protected int updateBiomeId (final int id)

Method updateBiomeId.

Parameters:
final int id

validateId

static void validateId (final int id, final int currentId, final String type)

Method validateId.

Parameters:
final int id
final int currentId
final String type

Error

public new Error (String.format("Invalid ID '%s' registered for type %s. Current ID counter: %s", id, type, currentId)

Method Error.

Parameters:
String.format("Invalid ID '%s' registered for type %s. Current ID counter: %s"
id id
type type
currentId currentId