AssetRegistryLoader

public class AssetRegistryLoader

Class AssetRegistryLoader. Provides assetregistryloader functionality for the Hytale server.

java.lang.Object > AssetRegistryLoader

Field Summary

start

final long start

Field start.

preAddedAssets

final List preAddedAssets

Field preAddedAssets.

loadResult

final AssetLoadResult loadResult

Field loadResult.

end

final long end

Field end.

diff

final long diff

Field diff.

serverAssetDirectory

final Path serverAssetDirectory

Field serverAssetDirectory.

startAll

final long startAll

Field startAll.

path

final String path

Field path.

assetsPath

final Path assetsPath

Field assetsPath.

path2

final String path2

Field path2.

assetsPath2

final Path assetsPath2

Field assetsPath2.

endAll

final long endAll

Field endAll.

diffAll

final long diffAll

Field diffAll.

packetConsumer

final Consumer packetConsumer

Field packetConsumer.

singlePacketConsumer

final Consumer singlePacketConsumer

Field singlePacketConsumer.

values

final AssetStore[] values

Field values.

vsCodeSchemas

final BsonArray vsCodeSchemas

Field vsCodeSchemas.

vsCodeFiles

final BsonDocument vsCodeFiles

Field vsCodeFiles.

array

final AssetStore[] array

Field array.

assetClass

final Class assetClass

Field assetClass.

name

final String name

Field name.

codec

final AssetCodec codec

Field codec.

array2

final AssetStore[] array2

Field array2.

store2

final AssetStore store2

Field store2.

assetClass2

final Class assetClass2

Field assetClass2.

name2

final String name2

Field name2.

codec2

final AssetCodec codec2

Field codec2.

schema

final Schema schema

Field schema.

hytale

final Schema.HytaleMetadata hytale

Field hytale.

idProvider

final Class idProvider

Field idProvider.

preload

final List preload

Field preload.

internal

final String[] internal

Field internal.

p

final Object p

Field p.

k

final Object k

Field k.

config

final BsonDocument config

Field config.

definitions

final Schema definitions

Field definitions.

otherDefinitions

final Schema otherDefinitions

Field otherDefinitions.

pack

final AssetPack pack

Field pack.

vsCodeConfig

final BsonDocument vsCodeConfig

Field vsCodeConfig.

assetDirectory

final Path assetDirectory

Field assetDirectory.

schemaDir

final Path schemaDir

Field schemaDir.

context

final SchemaContext context

Field context.

Method Detail

init

static void init ()

Method init.

preLoadAssets

static void preLoadAssets (@Nonnull final LoadAssetEvent event)

Method preLoadAssets.

Parameters:
@Nonnull final LoadAssetEvent event

loadAssets

static void loadAssets (@Nullable final LoadAssetEvent event, @Nonnull final AssetPack assetPack)

Method loadAssets.

Parameters:
@Nullable final LoadAssetEvent event
@Nonnull final AssetPack assetPack

preLoadAssets0

static void preLoadAssets0 (@Nonnull final LoadAssetEvent event)

Method preLoadAssets0.

Parameters:
@Nonnull final LoadAssetEvent event

AssetStoreIterator

public new AssetStoreIterator (values)

Method AssetStoreIterator.

Parameters:
values values

RuntimeException

public new RuntimeException (String.format("Failed to pre-add %s took %s", assetClass.getSimpleName()

Method RuntimeException.

Parameters:
String.format("Failed to pre-add %s took %s"
assetClass.getSimpleName( assetClass.getSimpleName(

loadAssets0

static void loadAssets0 (@Nullable final LoadAssetEvent event, @Nonnull final AssetPack assetPack)

Method loadAssets0.

Parameters:
@Nullable final LoadAssetEvent event
@Nonnull final AssetPack assetPack

sendAssets

static void sendAssets (@Nonnull final PacketHandler packetHandler)

Method sendAssets.

Parameters:
@Nonnull final PacketHandler packetHandler

generateSchemas

public Schema> generateSchemas (@Nonnull final SchemaContext context, @Nonnull final BsonDocument vsCodeConfig)

Method generateSchemas.

Parameters:
@Nonnull final SchemaContext context
@Nonnull final BsonDocument vsCodeConfig

BsonInt32

public new BsonInt32 (2)

Method BsonInt32.

Parameters:
2 2

BsonString

public new BsonString ("/Server/" + path + "/**/*" + store2.getExtension()

Method BsonString.

Parameters:
"/Server/" + path + "/**/*" + store2.getExtension(

GenerateSchemaEvent

public new GenerateSchemaEvent (schemas, context, vsCodeConfig)

Method GenerateSchemaEvent.

Parameters:
schemas schemas
context context
vsCodeConfig vsCodeConfig

writeSchemas

static void writeSchemas (final LoadAssetEvent event)

Method writeSchemas.

Parameters:
final LoadAssetEvent event

IndexedAssetMap

public new IndexedAssetMap ()

Method IndexedAssetMap.

AmbienceFXPacketGenerator

public new AmbienceFXPacketGenerator ()

Method AmbienceFXPacketGenerator.

IndexedLookupTableAssetMap

public new IndexedLookupTableAssetMap (BlockBoundingBoxes[]::new)

Method IndexedLookupTableAssetMap.

Parameters:
BlockBoundingBoxes[]::new BlockBoundingBoxes[]::new

BlockBoundingBoxesPacketGenerator

public new BlockBoundingBoxesPacketGenerator ()

Method BlockBoundingBoxesPacketGenerator.

BlockSetPacketGenerator

public new BlockSetPacketGenerator ()

Method BlockSetPacketGenerator.

BlockSoundSetPacketGenerator

public new BlockSoundSetPacketGenerator ()

Method BlockSoundSetPacketGenerator.

ItemSoundSetPacketGenerator

public new ItemSoundSetPacketGenerator ()

Method ItemSoundSetPacketGenerator.

DefaultAssetMap

public new DefaultAssetMap ()

Method DefaultAssetMap.

BlockParticleSetPacketGenerator

public new BlockParticleSetPacketGenerator ()

Method BlockParticleSetPacketGenerator.

BlockBreakingDecalPacketGenerator

public new BlockBreakingDecalPacketGenerator ()

Method BlockBreakingDecalPacketGenerator.

BlockTypePacketGenerator

public new BlockTypePacketGenerator ()

Method BlockTypePacketGenerator.

ItemStack

public new ItemStack (item, 1)

Method ItemStack.

Parameters:
item item
1 1

FluidTypePacketGenerator

public new FluidTypePacketGenerator ()

Method FluidTypePacketGenerator.

ItemPlayerAnimationsPacketGenerator

public new ItemPlayerAnimationsPacketGenerator ()

Method ItemPlayerAnimationsPacketGenerator.

EnvironmentPacketGenerator

public new EnvironmentPacketGenerator ()

Method EnvironmentPacketGenerator.

FluidFXPacketGenerator

public new FluidFXPacketGenerator ()

Method FluidFXPacketGenerator.

ItemCategoryPacketGenerator

public new ItemCategoryPacketGenerator ()

Method ItemCategoryPacketGenerator.

FieldcraftCategoryPacketGenerator

public new FieldcraftCategoryPacketGenerator ()

Method FieldcraftCategoryPacketGenerator.

ItemReticleConfigPacketGenerator

public new ItemReticleConfigPacketGenerator ()

Method ItemReticleConfigPacketGenerator.

ItemPacketGenerator

public new ItemPacketGenerator ()

Method ItemPacketGenerator.

CraftingRecipePacketGenerator

public new CraftingRecipePacketGenerator ()

Method CraftingRecipePacketGenerator.

ParticleSpawnerPacketGenerator

public new ParticleSpawnerPacketGenerator ()

Method ParticleSpawnerPacketGenerator.

ParticleSystemPacketGenerator

public new ParticleSystemPacketGenerator ()

Method ParticleSystemPacketGenerator.

TrailPacketGenerator

public new TrailPacketGenerator ()

Method TrailPacketGenerator.

EntityEffectPacketGenerator

public new EntityEffectPacketGenerator ()

Method EntityEffectPacketGenerator.

ModelVFXPacketGenerator

public new ModelVFXPacketGenerator ()

Method ModelVFXPacketGenerator.

ResourceTypePacketGenerator

public new ResourceTypePacketGenerator ()

Method ResourceTypePacketGenerator.

WeatherPacketGenerator

public new WeatherPacketGenerator ()

Method WeatherPacketGenerator.

SoundEventPacketGenerator

public new SoundEventPacketGenerator ()

Method SoundEventPacketGenerator.

SoundSetPacketGenerator

public new SoundSetPacketGenerator ()

Method SoundSetPacketGenerator.

AudioCategoryPacketGenerator

public new AudioCategoryPacketGenerator ()

Method AudioCategoryPacketGenerator.

ReverbEffectPacketGenerator

public new ReverbEffectPacketGenerator ()

Method ReverbEffectPacketGenerator.

EqualizerEffectPacketGenerator

public new EqualizerEffectPacketGenerator ()

Method EqualizerEffectPacketGenerator.

ItemQualityPacketGenerator

public new ItemQualityPacketGenerator ()

Method ItemQualityPacketGenerator.

ProjectileConfigPacketGenerator

public new ProjectileConfigPacketGenerator ()

Method ProjectileConfigPacketGenerator.

BlockGroupPacketGenerator

public new BlockGroupPacketGenerator ()

Method BlockGroupPacketGenerator.

TagPatternPacketGenerator

public new TagPatternPacketGenerator ()

Method TagPatternPacketGenerator.