aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-04-15 04:03:21 +0200
committernea <romangraef@gmail.com>2022-04-15 04:03:21 +0200
commite39cea3ec288998f21f7f682b46b30339b1e688e (patch)
tree82efd92bdd8b3b76bf3c1b161152d386abd6e1b1 /src
parentb797c199f749071e3a58b1236b8e805e9a9eb2fd (diff)
downloadNotEnoughUpdates-e39cea3ec288998f21f7f682b46b30339b1e688e.tar.gz
NotEnoughUpdates-e39cea3ec288998f21f7f682b46b30339b1e688e.tar.bz2
NotEnoughUpdates-e39cea3ec288998f21f7f682b46b30339b1e688e.zip
move shit into hover cause items look pretty terrible
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
index 430fe7c1..c8c425fb 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/recipes/MobLootRecipe.java
@@ -48,7 +48,7 @@ public class MobLootRecipe implements NeuRecipe {
if (itemStack == null) {
itemStack = drop.getItemStack().copy();
List<String> arrayList = new ArrayList<>(extra);
- arrayList.add("§r§fDrop Chance: §6" + chance);
+ arrayList.add("§r§e§lDrop Chance: §6" + chance);
ItemUtils.appendLore(itemStack, arrayList);
}
return itemStack;
@@ -162,15 +162,6 @@ public class MobLootRecipe implements NeuRecipe {
MobDrop mobDrop = drops.get(i);
addSlot.accept(i, mobDrop.getItemStack());
}
- if (coins > 0) {
- addSlot.accept(i++, ItemUtils.getCoinItemStack(coins));
- }
- if (xp > 0) {
- addSlot.accept(i++, Utils.createItemStack(Items.experience_bottle, "§a" + xp + " Experience"));
- }
- if (combatXp > 0) {
- addSlot.accept(i++, Utils.createItemStack(Items.iron_sword, "§2" + combatXp + " Combat Experience"));
- }
return slots;
}
@@ -223,8 +214,16 @@ public class MobLootRecipe implements NeuRecipe {
PANORAMA_WIDTH,
PANORAMA_HEIGHT
)) {
- List<String> stuff = new ArrayList<>(extra);
- stuff.add(0, (level > 0 ? "§8[§7Lv " + level + "§8] §c" : "§c") + name);
+ List<String> stuff = new ArrayList<>();
+ stuff.add((level > 0 ? "§8[§7Lv " + level + "§8] §c" : "§c") + name);
+ stuff.add("");
+ if (coins > 0)
+ stuff.add("§r§6Coins: " + coins);
+ if (xp > 0)
+ stuff.add("§r§aExperience: " + xp);
+ if (combatXp > 0)
+ stuff.add("§r§bCombat Experience: " + xp);
+ stuff.addAll(extra);
Utils.drawHoveringText(
stuff,
mouseX,