MinecraftResource class

Constructors

MinecraftResource(APIHttpClient httpClient)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → APIHttpClient
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createMinecraftMod({required String name, required List<String> supportVersions, String? id, String? description, List<RelationMod>? relationMods, ModIntegrationPlatform? integration, List<ModSide>? side, List<ModLoader>? loader, String? translatedName, String? introduction, String? imageStorageUUID, String? token}) Future<MinecraftMod>
建立 Minecraft 模組,如果建立成功將回傳 Minecraft 模組資訊
editMinecraftMod({required String uuid, String? name, List<String>? supportVersions, String? id, String? description, List<RelationMod>? relationMods, ModIntegrationPlatform? integration, List<ModSide>? side, List<ModLoader>? loader, String? translatedName, String? introduction, String? imageStorageUUID, String? changelog, String? token}) Future<MinecraftMod>
編輯 Minecraft 模組,如果編輯成功將回傳編輯後的 Minecraft 模組資訊
filterChangelogs({int? limit, int? skip, String? dataUUID, String? userUUID}) Future<ListModelResponse<WikiChangelog>>
查詢 RPMWiki 的變更日誌 limit 取得的資料數量 (預設為 50,最大為 50) skip 跳過的資料數量 (預設為 0) dataUUID 要篩選的資料 UUID userUUID 要篩選的資料編輯者 UUID
getMinecraftMod(String uuid, {bool recordViewCount = false}) Future<MinecraftMod>
透過 UUID 取得 Minecraft 模組資訊 recordViewCount 是否紀錄瀏覽次數
getMinecraftVersionManifest() Future<MinecraftVersionManifest>
取得 Minecraft 版本資訊 (由 Mojang API 提供,RPMTW API 伺服器每天快取一次資料)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
透過 模組名稱/模組譯名/模組 ID 來搜尋 Minecraft 模組 limit 取得的資料數量 (預設為 50,最大為 50) skip 跳過的資料數量 (預設為 0)
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited