AssetModule

public class AssetModule extends JavaPlugin

Class AssetModule. Provides assetmodule functionality for the Hytale server.

java.lang.Object > JavaPlugin > AssetModule

Field Summary

assetMonitor

private AssetMonitor assetMonitor

Field assetMonitor.

hasLoaded

private boolean hasLoaded

Field hasLoaded.

paths

final List paths

Field paths.

sb

final StringBuilder sb

Field sb.

assetStores

final AssetStore[] assetStores

Field assetStores.

assetStore2

final AssetStore assetStore2

Field assetStore2.

simpleName

final String simpleName

Field simpleName.

assetCount

final int assetCount

Field assetCount.

pack

final AssetPack pack

Field pack.

manifestPath

final Path manifestPath

Field manifestPath.

buffer

final char[] buffer

Field buffer.

rawJsonReader

final RawJsonReader rawJsonReader

Field rawJsonReader.

extraInfo

final ExtraInfo extraInfo

Field extraInfo.

manifest

final PluginManifest manifest

Field manifest.

manifestPath2

final Path manifestPath2

Field manifestPath2.

buffer2

final char[] buffer2

Field buffer2.

rawJsonReader2

final RawJsonReader rawJsonReader2

Field rawJsonReader2.

extraInfo2

final ExtraInfo extraInfo2

Field extraInfo2.

manifest2

final PluginManifest manifest2

Field manifest2.

packIdentifier

final PluginIdentifier packIdentifier

Field packIdentifier.

modConfig

final HytaleServerConfig.ModConfig modConfig

Field modConfig.

enabled

final boolean enabled

Field enabled.

packId

final String packId

Field packId.

packLocation

final Path packLocation

Field packLocation.

lowerFileName

final String lowerFileName

Field lowerFileName.

path

final String path

Field path.

assetsPath

final Path assetsPath

Field assetsPath.

preAddedAssets

final List preAddedAssets

Field preAddedAssets.

loadResult

final AssetLoadResult loadResult

Field loadResult.

serverAssetDirectory

final Path serverAssetDirectory

Field serverAssetDirectory.

start

final long start

Field start.

provider

final IWorldGenProvider provider

Field provider.

generator

final IWorldGen generator

Field generator.

valid

final boolean valid

Field valid.

worldMap

final IWorldMap worldMap

Field worldMap.

Method Detail

get

static AssetModule get ()

Method get.

AssetModule

public public AssetModule (@Nonnull final JavaPluginInit init)

Method AssetModule.

Parameters:
@Nonnull final JavaPluginInit init

setup

protected void setup ()

Method setup.

DroplistCommand

public new DroplistCommand ()

Method DroplistCommand.

shutdown

protected void shutdown ()

Method shutdown.

getBaseAssetPack

public AssetPack getBaseAssetPack ()

Method getBaseAssetPack.

getAssetPacks

public List getAssetPacks ()

Method getAssetPacks.

getAssetMonitor

public AssetMonitor getAssetMonitor ()

Method getAssetMonitor.

findAssetPackForPath

public AssetPack findAssetPackForPath (Path path)

Method findAssetPackForPath.

Parameters:
Path path

isAssetPathImmutable

public boolean isAssetPathImmutable (@Nonnull final Path path)

Method isAssetPathImmutable.

Parameters:
@Nonnull final Path path

loadPackManifest

private PluginManifest loadPackManifest (final Path packPath)

Method loadPackManifest.

Parameters:
final Path packPath

if

public else if (Files.isDirectory(packPath, new LinkOption[0])

Method if.

Parameters:
Files.isDirectory(packPath Files.isDirectory(packPath
new LinkOption[0]

FileReader

public new FileReader (manifestPath2.toFile()

Method FileReader.

Parameters:
manifestPath2.toFile( manifestPath2.toFile(

loadPacksFromDirectory

private void loadPacksFromDirectory (final Path modsPath)

Method loadPacksFromDirectory.

Parameters:
final Path modsPath

loadAndRegisterPack

private void loadAndRegisterPack (final Path packPath)

Method loadAndRegisterPack.

Parameters:
final Path packPath

registerPack

public void registerPack (@Nonnull final String name, @Nonnull final Path path, @Nonnull final PluginManifest manifest)

Method registerPack.

Parameters:
@Nonnull final String name
@Nonnull final Path path
@Nonnull final PluginManifest manifest

AssetPackRegisterEvent

public new AssetPackRegisterEvent (pack)

Method AssetPackRegisterEvent.

Parameters:
pack pack

unregisterPack

public void unregisterPack (@Nonnull final String name)

Method unregisterPack.

Parameters:
@Nonnull final String name

AssetPackUnregisterEvent

public new AssetPackUnregisterEvent (pack)

Method AssetPackUnregisterEvent.

Parameters:
pack pack

getAssetPack

public AssetPack getAssetPack (@Nonnull final String name)

Method getAssetPack.

Parameters:
@Nonnull final String name

onRemoveStore

private void onRemoveStore (@Nonnull final RemoveAssetStoreEvent event)

Method onRemoveStore.

Parameters:
@Nonnull final RemoveAssetStoreEvent event

onNewStore

private void onNewStore (@Nonnull final RegisterAssetStoreEvent event)

Method onNewStore.

Parameters:
@Nonnull final RegisterAssetStoreEvent event

initPendingStores

public void initPendingStores ()

Method initPendingStores.

initStore

private void initStore (@Nonnull final AssetStore assetStore)

Method initStore.

Parameters:
@Nonnull final AssetStore assetStore

RuntimeException

public new RuntimeException ("Failed to load asset store: " + String.valueOf(assetStore.getAssetClass()

Method RuntimeException.

Parameters:
"Failed to load asset store: " + String.valueOf(assetStore.getAssetClass(

validateWorldGen

static void validateWorldGen (@Nonnull final LoadAssetEvent event)

Method validateWorldGen.

Parameters:
@Nonnull final LoadAssetEvent event