# ContentProvider(ロブロックス クラス) > Service that is used to load content, or assets, into a game. - URL:https://roblox.minecraft-okinawa.com/reference/classes/ContentProvider/ - 公式:https://create.roblox.com/docs/reference/engine/classes/ContentProvider - 受け継いでいるクラス:Instance ## プロパティ - `ContentProvider.BaseUrl: string`:Used by the ContentProvider to download assets from the Roblox website. - `ContentProvider.RequestQueueSize: int`:Gives the number of items in the ContentProvider request queue that need to be downloaded. ## メソッド - `ContentProvider:GetAssetFetchStatus(contentId: ContentId): AssetFetchStatus`:Gets the current AssetFetchStatus of the contentId provided. - `ContentProvider:GetAssetFetchStatusChangedSignal(contentId: ContentId): RBXScriptSignal`:A signal that fires when the AssetFetchStatus of the provided content changes. - `ContentProvider:ListEncryptedAssets(): Array`:Returns an array of the asset IDs that currently have a registered encryption key. - `ContentProvider:PreloadAsync(contentIdList: Array, callbackFunction: Function): ()`:Yields until all of the assets associated with the given Class.Instance|Instances have loaded. - `ContentProvider:RegisterDefaultEncryptionKey(encryptionKey: string): ()`:Registers a fallback encryption key used to decrypt any encrypted asset that doesn't have its own key registered. - `ContentProvider:RegisterDefaultSessionKey(sessionKey: string): ()`:Decrypts the provided session key and registers the result as the default encryption key. - `ContentProvider:RegisterEncryptedAsset(assetId: ContentId, encryptionKey: string): ()`:Registers an encryption key used to decrypt a specific encrypted asset. - `ContentProvider:RegisterSessionEncryptedAsset(contentId: ContentId, sessionKey: string): ()`:Decrypts the provided session key and registers it as the encryption key for a specific asset. - `ContentProvider:UnregisterDefaultEncryptionKey(): ()`:Clears the default encryption key previously set on the ContentProvider. - `ContentProvider:UnregisterEncryptedAsset(assetId: ContentId): ()`:Removes the encryption key registered for a specific asset. ## イベント - `ContentProvider.AssetFetchFailed(assetId: ContentId)`:Fires when the ContentProvider fails to fetch an asset, passing the asset's ID. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)