-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 'Insert -> [...] ID' if a non-ID-based version is selected
- Loading branch information
Showing
1 changed file
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
package org.chorusmc.chorus.menus.drop | ||
|
||
import org.chorusmc.chorus.minecraft.McClass | ||
|
||
/** | ||
* @author Gio | ||
*/ | ||
class InsertDropMenu : DropMenu() { | ||
|
||
override fun getButtons(): MutableList<DropMenuButton> = arrayListOf( | ||
DropMenuButton("Colored text", "insert"), | ||
DropMenuButton("Item name", "insert"), | ||
DropMenuButton("Item ID", "insert"), | ||
DropMenuButton("Particle name", "insert"), | ||
DropMenuButton("Effect name", "insert"), | ||
DropMenuButton("Effect ID", "insert"), | ||
DropMenuButton("Sound name", "insert"), | ||
DropMenuButton("Entity name", "insert"), | ||
DropMenuButton("Enchantment name", "insert"), | ||
DropMenuButton("Enchantment ID", "insert"), | ||
DropMenuButton("Ticks", "insert") | ||
) | ||
override fun getButtons(): MutableList<DropMenuButton> { | ||
val array = arrayListOf( | ||
DropMenuButton("Colored text", "insert"), | ||
DropMenuButton("Item name", "insert"), | ||
DropMenuButton("Particle name", "insert"), | ||
DropMenuButton("Effect name", "insert"), | ||
DropMenuButton("Sound name", "insert"), | ||
DropMenuButton("Entity name", "insert"), | ||
DropMenuButton("Enchantment name", "insert"), | ||
DropMenuButton("Ticks", "insert") | ||
) | ||
if(McClass("").version == "1.12") { | ||
array.add(2, DropMenuButton("Item ID", "insert")) | ||
array.add(5, DropMenuButton("Effect ID", "insert")) | ||
array.add(9, DropMenuButton("Enchantment ID", "insert")) | ||
} | ||
return array | ||
} | ||
} |