File tree Expand file tree Collapse file tree 7 files changed +17
-6
lines changed
src/main/kotlin/ink/ptms/um
src/main/kotlin/ink/ptms/um/impl4
src/main/kotlin/ink/ptms/um/impl5 Expand file tree Collapse file tree 7 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
group =ink.ptms.um
2
- version =1.1.3
3
- taboolib_version =6.2.0-beta33
2
+ version =1.1.4
3
+ taboolib_version =6.2.2
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import io.izzel.taboolib.gradle.BukkitUtil
5
5
val taboolib_version: String by project
6
6
7
7
plugins {
8
- id(" io.izzel.taboolib" ) version " 2.0.18 "
8
+ id(" io.izzel.taboolib" ) version " 2.0.22 "
9
9
}
10
10
11
11
taboolib {
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ interface Mythic {
19
19
/* * 获取 ItemStack 所对应的 MythicItem ID */
20
20
fun getItemId (itemStack : ItemStack ): String?
21
21
22
+ /* * 获取 MythicItem 实例并构建到 ItemStack 不要用问号缺省,构建出来的代码不包含*/
23
+ fun getItemStack (name : String ): ItemStack ?
24
+
22
25
/* * 获取 MythicItem 实例并构建到 ItemStack */
23
26
fun getItemStack (name : String , player : Player ? = null): ItemStack ?
24
27
@@ -128,4 +131,4 @@ interface Mythic {
128
131
return ::API .isInitialized
129
132
}
130
133
}
131
- }
134
+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import io.izzel.taboolib.gradle.*
3
3
val taboolib_version: String by project
4
4
5
5
plugins {
6
- id(" io.izzel.taboolib" ) version " 2.0.18 "
6
+ id(" io.izzel.taboolib" ) version " 2.0.22 "
7
7
}
8
8
9
9
taboolib {
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ internal class Mythic4 : Mythic {
74
74
? : itemManager.getItemStack(name)
75
75
}
76
76
77
+ override fun getItemStack (name : String ): ItemStack ? {
78
+ return itemManager.getItemStack(name)
79
+ }
80
+
77
81
override fun getItemIDList (): List <String > {
78
82
return itemManager.items.map { it.internalName }
79
83
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import io.izzel.taboolib.gradle.*
3
3
val taboolib_version: String by project
4
4
5
5
plugins {
6
- id(" io.izzel.taboolib" ) version " 2.0.18 "
6
+ id(" io.izzel.taboolib" ) version " 2.0.22 "
7
7
}
8
8
9
9
taboolib {
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ internal class Mythic5 : Mythic {
62
62
? : api.itemManager?.getItem(name)?.get()?.generateItemStack(1 )?.toBukkit()
63
63
}
64
64
65
+ override fun getItemStack (name : String ): ItemStack ? {
66
+ return api.itemManager?.getItem(name)?.get()?.generateItemStack(1 )?.toBukkit()
67
+ }
68
+
65
69
override fun getItemIDList (): List <String > {
66
70
return api.itemManager.items.map { it.internalName }
67
71
}
You can’t perform that action at this time.
0 commit comments