MinecraftMod class
Constructors
-
MinecraftMod({required String name, String? description, required String? id, required List<
MinecraftVersion> supportVersions, required List<RelationMod> relationMods, required ModIntegrationPlatform integration, required List<ModSide> side, required DateTime lastUpdate, required DateTime createTime, required String uuid, String? translatedName, String? introduction, String? imageStorageUUID, int viewCount = 0, List<ModLoader> ? loader}) -
const
- MinecraftMod.fromJson(String source)
-
factory
-
MinecraftMod.fromMap(Map<
String, dynamic> map) -
factory
Properties
- createTime → DateTime
-
模組收錄日期
final
- description → String?
-
模組描述 (尚未翻譯的原始描述)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String?
-
模組 ID (例如 rpmtw_update_mod )
final
- imageStorageUUID → String?
-
模組的封面圖 (Storage UUID)
final
- imageUrl → String?
-
no setter
- integration → ModIntegrationPlatform
-
模組串連的平台 (例如 CurseForge、Modrinth...)
final
- introduction → String?
-
模組的介紹文章 (Markdown 格式)
final
- lastUpdate → DateTime
-
最後資料更新日期
final
-
loader
→ List<
ModLoader> ? -
模組使用的模組載入器 (例如 Forge、Fabric...)
final
- name → String
-
模組的名稱 (尚未翻譯的原始名稱)
final
-
relationMods
→ List<
RelationMod> -
關聯模組
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
side
→ List<
ModSide> -
模組支援的執行環境 (客戶端/伺服器端)
final
-
supportVersions
→ List<
MinecraftVersion> -
模組支援的 Minecraft 版本
final
- translatedName → String?
-
已翻譯過的模組名稱
final
- uuid → String
-
final
- viewCount → int
-
模組瀏覽次數
final
Methods
-
copyWith(
{String? uuid, String? name, String? description, String? id, List< MinecraftVersion> ? supportVersions, List<RelationMod> ? relationMods, ModIntegrationPlatform? integration, List<ModSide> ? side, DateTime? lastUpdate, DateTime? createTime, List<ModLoader> ? loader, String? translatedName, String? introduction, String? imageStorageUUID, int? viewCount}) → MinecraftMod -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
getByUUID(
String uuid) → Future< MinecraftMod>