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 Kkey
getAssetForPack0
private
T
getAssetForPack0
(@Nonnull final String packKey, final K key)
Method getAssetForPack0.
- Parameters:
@Nonnull final StringpackKeyfinal Kkey
getPath
public
Path
getPath
(final K key)
Method getPath.
- Parameters:
final Kkey
getAssetPack
public
String
getAssetPack
(final K key)
Method getAssetPack.
- Parameters:
final Kkey
getPath0
private
Path
getPath0
(final K key)
Method getPath0.
- Parameters:
final Kkey
getAssetPack0
private
String
getAssetPack0
(final K key)
Method getAssetPack0.
- Parameters:
final Kkey
getAssetRef
private
AssetRef
getAssetRef
(final K key)
Method getAssetRef.
- Parameters:
final Kkey
getKeys
public
Set
getKeys
(@Nonnull final Path path)
Method getKeys.
- Parameters:
@Nonnull final Pathpath
getChildren
public
Set
getChildren
(final K key)
Method getChildren.
- Parameters:
final Kkey
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 StringpackKey
getKeysForTag
public
Set
getKeysForTag
(final int tagIndex)
Method getKeysForTag.
- Parameters:
final inttagIndex
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 StringpackKey@Nonnull final AssetCodeccodec@Nonnull final MaploadedAssets@Nonnull final MaploadedKeyToPathMap@Nonnull final MaploadedAssetChildren>
ObjectOpenHashSet
public
new
ObjectOpenHashSet
(3)
Method ObjectOpenHashSet.
- Parameters:
33
putAssetTags
Method putAssetTags.
- Parameters:
@Nonnull final AssetCodeccodec@Nonnull final MaploadedAssets
putAssetTag
protected
void
putAssetTag
(final K key, final int tag)
Method putAssetTag.
- Parameters:
final Kkeyfinal inttag
getKeysForPack
public
Set
getKeysForPack
(@Nonnull final String name)
Method getKeysForPack.
- Parameters:
@Nonnull final Stringname
remove
protected
Set
remove
(@Nonnull final Set keys)
Method remove.
- Parameters:
@Nonnull final Setkeys
AssetRef
public
protected
AssetRef
(final String pack, final Path path, final T value)
Method AssetRef.
- Parameters:
final Stringpackfinal Pathpathfinal Tvalue