aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/CustomItems.java
blob: 3911396f57700827072a1edcdaf37f28e2dad07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
 * Copyright (C) 2022 NotEnoughUpdates contributors
 *
 * This file is part of NotEnoughUpdates.
 *
 * NotEnoughUpdates is free software: you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * NotEnoughUpdates is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with NotEnoughUpdates. If not, see <https://www.gnu.org/licenses/>.
 */

package io.github.moulberry.notenoughupdates;

import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import io.github.moulberry.notenoughupdates.util.Constants;
import net.minecraft.util.EnumChatFormatting;

public class CustomItems {
	/*
	 * So it has come to this, huh? Snooping through the source to find all my carefully crafted easter eggs. You
	 * cheated not only the game, but yourself. You didn't grow. You didn't improve. You took a
	 * shortcut and gained nothing. You experienced a hollow victory. Nothing was risked and nothing was gained.
	 * It's sad that you don't know the difference.
	 */

	public static JsonObject NULLZEE = create(
		"NULLZEE",
		"dirt",
		"Nullzee242 Youtube Channel",
		"Dirt, AOTD. Dirt, AOTD.",
		"Dirt, AOTD. Dirt, AOTD.",
		"Ooh, Dirt to Midas! Let's shake it up a little.",
		"",
		"Also, did you know that only 8.7% of the people watching are subscribed?",
		"It's OK, everyone makes mistakes",
		"Also follow -> twitch.tv/nullzeelive",
		"Also -> discord.gg/nullzee"
	);
	public static JsonObject DUCTTAPE = create(
		"DUCTTAPE",
		"iron_shovel",
		"You ever accidentally bury your duct tape?",
		"No problem! Our team of experts specialise in",
		"subterranean duct tape excavation. That's right:",
		"your buried duct tape problems are a thing of the past,",
		"all for the low price of $7.99 or a subscription",
		"to the Ducttapedigger youtube channel!"
	);
	public static JsonObject SPINAXX = create(
		"SPINAXX",
		"emerald",
		"Spinaxx",
		"Famous streamer btw :)"
	);
	public static JsonObject RUNE = create("RUNE", "paper", "No.", "I hate runes.");
	public static JsonObject TWOBEETWOTEE = create(
		"2B2T",
		"bedrock",
		"Minecraft's oldest anarchy Minecraft server in Minecraft.",
		"This Minecraft anarchy server is the oldest server,",
		"being a server since 2010 when Minecraft was a game with a server.",
		"It is complete anarchy in Minecraft which means that there is total anarchy.",
		"Hacking is allowed in Minecraft on this anarchy server which",
		"is the oldest anarchy server in Minecraft, 2b2t. Hack. Steal. Cheat. Lie.",
		"On the oldest anarchy server in Minecraft. 2b2t. The worst server in Minecraft,",
		"where there are no rules. On the oldest anarchy server in Minecraft.",
		"In this Minecraft anarchy server, there have been numerous Minecraft",
		"incursions on the server, some of which I, a player on this Minecraft",
		"anarchy server in Minecraft, have participated in. One of this server's",
		"most infamous Minecraft players on the oldest Minecraft"
	);
	public static JsonObject LEOCTHL = create(
		"LEOCTHL",
		"dragon_egg",
		"--- Stats below may not be entirely accurate ---",
		"17 legendary dragon pets",
		"24 epic dragon pets",
		"18 epic golem pets",
		"12 legendary golem pets",
		"39 legendary phoenix pets",
		"",
		"get flexed"
	);
	public static JsonObject CREDITS = Constants.MISC.getAsJsonObject("credits");
	public static JsonObject IRONM00N = create(
		"IRONM00N",
		"end_stone",
		"IRONM00N",
		"Your life has been a lie,",
		"the moon is made out of iron."
	);
	public static JsonObject NOPO = create(
		"nopo",
		"writable_book",
		"Nopo",
		"We do a lil Chatting"
	);

	/*
	 * SHAAAAAAAAAAAAAAAAAAME
	 */

	private static JsonObject create(String internalname, String itemid, String displayName, String... lore) {
		JsonObject json = new JsonObject();
		json.addProperty("itemid", itemid);
		json.addProperty("internalname", internalname);
		json.addProperty("displayname", EnumChatFormatting.RED + displayName);
		JsonArray jsonlore = new JsonArray();
		for (String line : lore) {
			jsonlore.add(new JsonPrimitive(EnumChatFormatting.GRAY + line));
		}
		json.add("lore", jsonlore);
		return json;
	}
}