public class HytaleAssetStore
Class HytaleAssetStore. Provides hytaleassetstore functionality for the Hytale server.
java.lang.Object > HytaleAssetStore
Field Summary
cachedInitPackets
Field cachedInitPackets.
assetMonitor
Field assetMonitor.
universe
Field universe.
packet
Field packet.
c
Field c.
item
Field item.
secondaryMessage
Field secondaryMessage.
createdOrModifiedFilesToLoad
Field createdOrModifiedFilesToLoad.
removedFilesToUnload
Field removedFilesToUnload.
createdOrModifiedDirectories
Field createdOrModifiedDirectories.
removedFilesAndDirectories
Field removedFilesAndDirectories.
path
Field path.
start
Field start.
removedKeys
Field removedKeys.
Method Detail
getPacketGenerator
M>
getPacketGenerator
()
Method getPacketGenerator.
getNotificationItemFunction
ItemWithAllMetadata>
getNotificationItemFunction
()
Method getNotificationItemFunction.
addFileMonitor
void
addFileMonitor
(@Nonnull final String packKey, @Nonnull final Path assetsPath)
Method addFileMonitor.
- Parameters:
@Nonnull final StringpackKey@Nonnull final PathassetsPath
AssetStoreMonitorHandler
new
AssetStoreMonitorHandler
(packKey)
Method AssetStoreMonitorHandler.
- Parameters:
packKeypackKey
removeFileMonitor
void
removeFileMonitor
(@Nonnull final Path path)
Method removeFileMonitor.
- Parameters:
@Nonnull final Pathpath
handleRemoveOrUpdate
void
handleRemoveOrUpdate
(@Nullable final Set toBeRemoved, @Nullable final Map toBeUpdated, @Nonnull final AssetUpdateQuery query)
Method handleRemoveOrUpdate.
- Parameters:
@Nullable final SettoBeRemoved@Nullable final MaptoBeUpdated@Nonnull final AssetUpdateQueryquery
sendAssets
void
sendAssets
(@Nonnull final Consumer packetConsumer)
Method sendAssets.
- Parameters:
@Nonnull final ConsumerpacketConsumer
sendReloadedNotification
Method sendReloadedNotification.
- Parameters:
@Nonnull final AssetLoadResultresult
sendRemovedNotification
void
sendRemovedNotification
(@Nonnull final Set removedKeys)
Method sendRemovedNotification.
- Parameters:
@Nonnull final SetremovedKeys
sendNotificationKeys
void
sendNotificationKeys
(final Message primaryMessage, @Nullable final String icon, @Nonnull final Set keys)
Method sendNotificationKeys.
- Parameters:
final MessageprimaryMessage@Nullable final Stringicon@Nonnull final Setkeys
sendNotificationPaths
Method sendNotificationPaths.
- Parameters:
final MessageprimaryMessage@Nonnull final Setpaths
builder
M>
builder
(final Class tClass, final M assetMap)
Method builder.
- Parameters:
final ClasstClassfinal MassetMap
Builder
public
Builder
(final Class kClass, final Class tClass, final M assetMap)
Method Builder.
- Parameters:
final ClasskClassfinal ClasstClassfinal MassetMap
setPacketGenerator
Method setPacketGenerator.
- Parameters:
final AssetPacketGeneratorpacketGenerator
setNotificationItemFunction
M>
setNotificationItemFunction
(final Function notificationItemFunction)
Method setNotificationItemFunction.
- Parameters:
final FunctionnotificationItemFunction
build
M>
build
()
Method build.
getKey
Object
getKey
()
Method getKey.
accept
void
accept
(final Map map)
Method accept.
- Parameters:
final Mapmap
IllegalArgumentException
new
IllegalArgumentException
("Unknown eventKind " + String.valueOf(entry.getValue()
Method IllegalArgumentException.
- Parameters:
"Unknown eventKind " +String.valueOf(entry.getValue(
AssetStoreMonitorEvent
new
AssetStoreMonitorEvent
(this.packKey, HytaleAssetStore.this, createdOrModifiedFilesToLoad, removedFilesToUnload, createdOrModifiedDirectories, removedFilesAndDirectories)
Method AssetStoreMonitorEvent.
- Parameters:
this.packKeythis.packKeyHytaleAssetStore.thisHytaleAssetStore.thiscreatedOrModifiedFilesToLoadcreatedOrModifiedFilesToLoadremovedFilesToUnloadremovedFilesToUnloadcreatedOrModifiedDirectoriescreatedOrModifiedDirectoriesremovedFilesAndDirectoriesremovedFilesAndDirectories