Chest GUI API now completed
This commit is contained in:
parent
01a6f1ddc7
commit
0fb37b1633
19 changed files with 436 additions and 239 deletions
|
@ -1,6 +1,7 @@
|
|||
package dev.zontreck.libzontreck.util.heads;
|
||||
|
||||
import dev.zontreck.libzontreck.chat.ChatColor;
|
||||
import dev.zontreck.libzontreck.lore.ExtraLore;
|
||||
import dev.zontreck.libzontreck.lore.LoreContainer;
|
||||
import dev.zontreck.libzontreck.lore.LoreEntry;
|
||||
import dev.zontreck.libzontreck.util.heads.HeadCache.HeadCacheItem;
|
||||
|
@ -29,16 +30,17 @@ public class CreditsEntry {
|
|||
ItemStack stack = player.getAsItem();
|
||||
stack.setHoverName(Component.literal(name));
|
||||
LoreContainer contain = new LoreContainer(stack);
|
||||
contain.miscData.LoreData.clear();
|
||||
LoreEntry entry = new LoreEntry();
|
||||
entry.text = ChatColor.doColors("!Dark_Purple!Role: "+role + "\n");
|
||||
entry.bold=true;
|
||||
entry.italic=true;
|
||||
contain.miscData.LoreData.add(entry);
|
||||
entry = new LoreEntry();
|
||||
entry.text = ChatColor.doColors("!White!About: !Dark_Green!"+description + "\n");
|
||||
entry.italic=true;
|
||||
contain.miscData.LoreData.add(entry);
|
||||
contain.clear();
|
||||
LoreEntry.Builder builder = new LoreEntry.Builder();
|
||||
builder = builder.text(ChatColor.doColors("!Dark_Purple!Role: "+role + "\n"))
|
||||
.bold(true)
|
||||
.italic(true);
|
||||
contain.miscData.loreData.add(builder.build());
|
||||
|
||||
builder = new LoreEntry.Builder().italic(true)
|
||||
.text(ChatColor.doColors("!White!About: !Dark_Green!"+description + "\n"));
|
||||
|
||||
contain.miscData.loreData.add(builder.build());
|
||||
|
||||
contain.commitLore();
|
||||
|
||||
|
|
|
@ -102,11 +102,11 @@ public class HeadCache
|
|||
List<CreditsEntry> creds = new ArrayList<>();
|
||||
|
||||
creds.add(
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("zontreck"), "Aria (zontreck)", "Developer", "Aria is the primary developer and project maintainer"));
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("zontreck"), "Aria (zontreck)", "Developer, Designer, Artist", "Aria is the primary developer and project maintainer"));
|
||||
creds.add(
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("PossumTheWarrior"), "PossumTheWarrior", "Tester", "Poss has helped to test the mods from very early on"));
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("PossumTheWarrior"), "PossumTheWarrior", "Tester, Adviser, Designer, Artist", "Poss has helped to test the mods from very early on. Poss has also contributed the artwork and mob model for the Possum"));
|
||||
creds.add(
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("GemMD"), "GemMD", "Adviser", "GemMD has provided advice on marketing and development decisions for various mods"));
|
||||
new CreditsEntry(HeadUtilities.cachedLookup("GemMD"), "GemMD", "Tester, Adviser, Designer", "GemMD has provided advice on marketing and development decisions for various mods"));
|
||||
|
||||
CREDITS = creds;
|
||||
|
||||
|
|
Reference in a new issue