classpublicPriority 3
HytaleAssetStore
com.hypixel.hytale.server.core.asset.HytaleAssetStore
implements AssetMonitorHandler
11
Methods
11
Public Methods
3
Fields
1
Constructors
Constants
ObjectList<Consumer<Packet>>SETUP_PACKET_CONSUMERS= new ObjectArrayList()
Constructors
public
HytaleAssetStore(HytaleAssetStore.Builder<K, T, M> builder)Methods
Public Methods (11)
public
void accept(Map<Path, EventKind> map)public
void addFileMonitor(String packKey, Path assetsPath)@Override
public
HytaleAssetStore<K, T, M> build()@Nonnull
public
Object getKey()@Override
public
Function<K, ItemWithAllMetadata> getNotificationItemFunction()public
AssetPacketGenerator<K, T, M> getPacketGenerator()public
void removeFileMonitor(Path path)@Override
public
void sendAssets(Consumer<Packet[]> packetConsumer)public
HytaleAssetStore.Builder<K, T, M> setNotificationItemFunction(Function<K, ItemWithAllMetadata> notificationItemFunction)@Nonnull
public
HytaleAssetStore.Builder<K, T, M> setPacketGenerator(AssetPacketGenerator<K, T, M> packetGenerator)@Nonnull
public
boolean test(Path path, EventKind eventKind)Fields
Protected Fields (3)
protected
SoftReference<Packet[]> cachedInitPacketsprotected
Function<K, ItemWithAllMetadata> notificationItemFunctionprotected
AssetPacketGenerator<K, T, M> packetGenerator