public class AssetTypeRegistry
Registry for managing assettype registration. Provides methods to register and query assettype items.
java.lang.Object > AssetTypeRegistry
Field Summary
setupPacket
private
AssetEditorSetupAssetTypes
setupPacket
Field setupPacket.
extension
final
String
extension
Field extension.
assetTypeHandler
final
AssetTypeHandler
assetTypeHandler
Field assetTypeHandler.
types
final
List
types
Field types.
Method Detail
AssetTypeRegistry
public
public
AssetTypeRegistry
()
Method AssetTypeRegistry.
getRegisteredAssetTypeHandlers
public
AssetTypeHandler>
getRegisteredAssetTypeHandlers
()
Method getRegisteredAssetTypeHandlers.
IllegalArgumentException
public
new
IllegalArgumentException
("An asset type with id '" + assetType.getConfig()
Method IllegalArgumentException.
- Parameters:
"An asset type with id '" +assetType.getConfig(
unregisterAssetType
Method unregisterAssetType.
- Parameters:
@Nonnull final AssetTypeHandlerassetType
getAssetTypeHandler
Method getAssetTypeHandler.
- Parameters:
final Stringid
getAssetTypeHandlerForPath
Method getAssetTypeHandlerForPath.
- Parameters:
@Nonnull final Pathpath
isPathInAssetTypeFolder
public
boolean
isPathInAssetTypeFolder
(@Nonnull final Path path)
Method isPathInAssetTypeFolder.
- Parameters:
@Nonnull final Pathpath
tryGetAssetTypeHandler
public
AssetTypeHandler
tryGetAssetTypeHandler
(@Nonnull final Path assetPath, @Nonnull final EditorClient editorClient, final int requestToken)
Method tryGetAssetTypeHandler.
- Parameters:
@Nonnull final PathassetPath@Nonnull final EditorClienteditorClientfinal intrequestToken
setupPacket
public
void
setupPacket
()
Method setupPacket.
AssetEditorSetupAssetTypes
public
new
AssetEditorSetupAssetTypes
(types.toArray(AssetEditorAssetType[]::new)
Method AssetEditorSetupAssetTypes.
- Parameters:
types.toArray(AssetEditorAssetType[]::newtypes.toArray(AssetEditorAssetType[]::new