diff options
| author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-06-14 14:26:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-14 14:26:00 +0200 |
| commit | 20821e63057add096e314310ea8fa8e0c411e964 (patch) | |
| tree | 1f29cf5d95570c1f36dccd9861a6b3fe8961ef89 | |
| parent | 1ccc0131278233b71db97b8ee81ecf084b4fb5b5 (diff) | |
| download | notenoughupdates-20821e63057add096e314310ea8fa8e0c411e964.tar.gz notenoughupdates-20821e63057add096e314310ea8fa8e0c411e964.tar.bz2 notenoughupdates-20821e63057add096e314310ea8fa8e0c411e964.zip | |
meta: Add 2024 Balloon Hat to the ItemResolutionQuery (#1212)
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java index b6be1171..9cefca1f 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemResolutionQuery.java @@ -129,6 +129,9 @@ public class ItemResolutionQuery { case "POTION": resolvedName = resolvePotionName(); break; + case "BALLOON_HAT_2024": + resolvedName = resolveBalloonHatName(); + break; } } @@ -356,6 +359,11 @@ public class ItemResolutionQuery { } } + private String resolveBalloonHatName() { + String color = getExtraAttributes().getString("party_hat_color"); + return "BALLOON_HAT_2024_" + color.toUpperCase(Locale.ROOT); + } + private NBTTagCompound getExtraAttributes() { if (compound == null) return new NBTTagCompound(); return compound.getCompoundTag(EXTRA_ATTRIBUTES); |
