DefaultAssetMap

public class DefaultAssetMap

Class DefaultAssetMap. Provides defaultassetmap functionality for the Hytale server.

java.lang.Object > DefaultAssetMap

Field Summary

value

final T value

Field value.

result

final T result

Field result.

chain

final AssetRef[] chain

Field chain.

pair

final AssetRef pair

Field pair.

set

final ObjectSet set

Field set.

stamp

final long stamp

Field stamp.

key

final K key

Field key.

finalVal

final T finalVal

Field finalVal.

data

final AssetExtraInfo.Data data

Field data.

iterator

final IntIterator iterator

Field iterator.

tag

final int tag

Field tag.

children

final Set children

Field children.

info

final AssetRef info

Field info.

child2

final ObjectSet child2

Field child2.

packKeys

final ObjectSet packKeys

Field packKeys.

newChain

final AssetRef[] newChain

Field newChain.

newAsset

final AssetRef newAsset

Field newAsset.

Method Detail

DefaultAssetMap

public public DefaultAssetMap ()

Method DefaultAssetMap.

getAsset

public T getAsset (final K key)

Method getAsset.

Parameters:
final K key

getAssetForPack0

private T getAssetForPack0 (@Nonnull final String packKey, final K key)

Method getAssetForPack0.

Parameters:
@Nonnull final String packKey
final K key

getPath

public Path getPath (final K key)

Method getPath.

Parameters:
final K key

getAssetPack

public String getAssetPack (final K key)

Method getAssetPack.

Parameters:
final K key

getPath0

private Path getPath0 (final K key)

Method getPath0.

Parameters:
final K key

getAssetPack0

private String getAssetPack0 (final K key)

Method getAssetPack0.

Parameters:
final K key

getAssetRef

private AssetRef getAssetRef (final K key)

Method getAssetRef.

Parameters:
final K key

getKeys

public Set getKeys (@Nonnull final Path path)

Method getKeys.

Parameters:
@Nonnull final Path path

getChildren

public Set getChildren (final K key)

Method getChildren.

Parameters:
final K key

getAssetCount

public int getAssetCount ()

Method getAssetCount.

getAssetMap

public T> getAssetMap ()

Method getAssetMap.

getPathMap

public Path> getPathMap (@Nonnull final String packKey)

Method getPathMap.

Parameters:
@Nonnull final String packKey

getKeysForTag

public Set getKeysForTag (final int tagIndex)

Method getKeysForTag.

Parameters:
final int tagIndex

getTagIndexes

public IntSet getTagIndexes ()

Method getTagIndexes.

getTagCount

public int getTagCount ()

Method getTagCount.

clear

protected void clear ()

Method clear.

putAll

protected void putAll (@Nonnull final String packKey, @Nonnull final AssetCodec codec, @Nonnull final Map loadedAssets, @Nonnull final Map loadedKeyToPathMap, @Nonnull final Map> loadedAssetChildren)

Method putAll.

Parameters:
@Nonnull final String packKey
@Nonnull final AssetCodec codec
@Nonnull final Map loadedAssets
@Nonnull final Map loadedKeyToPathMap
@Nonnull final Map> loadedAssetChildren

ObjectOpenHashSet

public new ObjectOpenHashSet (3)

Method ObjectOpenHashSet.

Parameters:
3 3

putAssetTags

protected void putAssetTags (@Nonnull final AssetCodec codec, @Nonnull final Map loadedAssets)

Method putAssetTags.

Parameters:
@Nonnull final AssetCodec codec
@Nonnull final Map loadedAssets

putAssetTag

protected void putAssetTag (final K key, final int tag)

Method putAssetTag.

Parameters:
final K key
final int tag

getKeysForPack

public Set getKeysForPack (@Nonnull final String name)

Method getKeysForPack.

Parameters:
@Nonnull final String name

remove

protected Set remove (@Nonnull final Set keys)

Method remove.

Parameters:
@Nonnull final Set keys

AssetRef

public protected AssetRef (final String pack, final Path path, final T value)

Method AssetRef.

Parameters:
final String pack
final Path path
final T value