forked from unimatrix/web
Remove remaining legacy renderers and isolate preserved game content from GUI assets
This commit is contained in:
parent
d4480cad6f
commit
70098d57ff
1636 changed files with 183 additions and 823 deletions
|
|
@ -4,7 +4,7 @@ on:
|
|||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'DuneRealmsGUI/**'
|
||||
- 'network/content-assets/**'
|
||||
- 'tools/build-resourcepack-repair.py'
|
||||
- 'tools/test_resourcepack_repair.py'
|
||||
- 'tools/build-arrakis-fauna-pack.mjs'
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ public final class DuneEss extends JavaPlugin implements CommandExecutor, TabCom
|
|||
String command=entry.getItemMeta().getPersistentDataContainer().get(helpActionKey,PersistentDataType.STRING);
|
||||
if(command!=null) actions.put(slot,()->player.performCommand(command.substring(1)));
|
||||
}
|
||||
com.example.dunegui.NativeMenus.inventory(this,player,"Dune Field Guide · "+(index+1),menu,actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(this,player,"Dune Field Guide · "+(index+1),menu,actions);
|
||||
}
|
||||
|
||||
private ItemStack helpItem(Material material, String name, List<String> lore) {
|
||||
|
|
@ -348,7 +348,7 @@ public final class DuneEss extends JavaPlugin implements CommandExecutor, TabCom
|
|||
if(!economy.withdrawPlayer(player,price).transactionSuccess()){player.sendMessage("Not enough Dunemarks, or economy unavailable.");return;}
|
||||
player.getInventory().addItem(spice);player.sendMessage(ChatColor.GOLD+"Bought 16 spice for "+economy.format(price)+".");
|
||||
});
|
||||
com.example.dunegui.NativeMenus.inventory(this,player,"Spice Seller · +35%",menu,actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(this,player,"Spice Seller · +35%",menu,actions);
|
||||
}
|
||||
|
||||
private void sellSpice(Player player) {
|
||||
|
|
@ -393,7 +393,7 @@ public final class DuneEss extends JavaPlugin implements CommandExecutor, TabCom
|
|||
}
|
||||
java.util.Map<Integer,Runnable> actions=new java.util.HashMap<>();
|
||||
for(int i=0;i<PLANETS.size();i++) { String planet=PLANETS.get(i); actions.put(i,()->travel(player,planet)); }
|
||||
com.example.dunegui.NativeMenus.inventory(this,player,"Vaerkring Travel",inventory,actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(this,player,"Vaerkring Travel",inventory,actions);
|
||||
}
|
||||
|
||||
@EventHandler public void onTravelMenuClick(InventoryClickEvent event) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package com.example.duneess;
|
||||
|
||||
import com.example.dunegui.NativeMenus;
|
||||
import com.example.dunegui.MenuPresentation;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.command.*;
|
||||
|
|
@ -79,20 +79,20 @@ final class EssentialsBasics implements CommandExecutor, TabCompleter, Listener
|
|||
p.teleportAsync(location).thenAccept(success->{ if(!success) p.sendMessage("Teleportation failed. Try again."); });
|
||||
}
|
||||
void menu(Player p) {
|
||||
List<NativeMenus.Choice> choices=new ArrayList<>();
|
||||
choices.add(new NativeMenus.Choice("Set home","Save your current position as home.",()->p.performCommand("sethome")));
|
||||
choices.add(new NativeMenus.Choice("Homes","Choose a saved home on this backend.",()->homeMenu(p)));
|
||||
choices.add(new NativeMenus.Choice("Spawn","Return to this world's spawn.",()->p.performCommand("spawn")));
|
||||
choices.add(new NativeMenus.Choice("Guild servers","Travel using existing Solaris fares and permissions.",()->p.performCommand("duneess travel")));
|
||||
choices.add(new NativeMenus.Choice("Solaris","Show your balance.",()->p.performCommand("duneess balance")));
|
||||
choices.add(new NativeMenus.Choice("Koopkring Exchange","Buy, list and reclaim items.",()->p.performCommand("exchange")));
|
||||
choices.add(new NativeMenus.Choice("Help","Open the Dune Field Guide.",()->p.performCommand("duneess help menu")));
|
||||
NativeMenus.show(plugin,p,"DuneRealms Essentials","Solaris: "+plugin.economy().format(plugin.economy().getBalance(p)),choices);
|
||||
List<MenuPresentation.Choice> choices=new ArrayList<>();
|
||||
choices.add(new MenuPresentation.Choice("Set home","Save your current position as home.",()->p.performCommand("sethome")));
|
||||
choices.add(new MenuPresentation.Choice("Homes","Choose a saved home on this backend.",()->homeMenu(p)));
|
||||
choices.add(new MenuPresentation.Choice("Spawn","Return to this world's spawn.",()->p.performCommand("spawn")));
|
||||
choices.add(new MenuPresentation.Choice("Guild servers","Travel using existing Solaris fares and permissions.",()->p.performCommand("duneess travel")));
|
||||
choices.add(new MenuPresentation.Choice("Solaris","Show your balance.",()->p.performCommand("duneess balance")));
|
||||
choices.add(new MenuPresentation.Choice("Koopkring Exchange","Buy, list and reclaim items.",()->p.performCommand("exchange")));
|
||||
choices.add(new MenuPresentation.Choice("Help","Open the Dune Field Guide.",()->p.performCommand("duneess help menu")));
|
||||
MenuPresentation.show(plugin,p,"DuneRealms Essentials","Solaris: "+plugin.economy().format(plugin.economy().getBalance(p)),choices);
|
||||
}
|
||||
private void homeMenu(Player p) {
|
||||
List<NativeMenus.Choice> choices=names(p).stream().sorted().map(name->new NativeMenus.Choice(name,"Teleport to this saved home.",()->p.performCommand("home "+name))).toList();
|
||||
List<MenuPresentation.Choice> choices=names(p).stream().sorted().map(name->new MenuPresentation.Choice(name,"Teleport to this saved home.",()->p.performCommand("home "+name))).toList();
|
||||
if(choices.isEmpty()) p.sendMessage("You have no homes. Use /sethome [name].");
|
||||
else NativeMenus.show(plugin,p,"Your homes",choices);
|
||||
else MenuPresentation.show(plugin,p,"Your homes",choices);
|
||||
}
|
||||
@Override public boolean onCommand(CommandSender sender,Command command,String label,String[] args) {
|
||||
if(!(sender instanceof Player p)) { sender.sendMessage("Use this command in-game."); return true; }
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ final class ExchangeMenu implements Listener, CommandExecutor, TabCompleter {
|
|||
});
|
||||
if(p.hasPermission("dune.admin")) button(s,42,Material.COMMAND_BLOCK,"Exchange Administration",()->admin(p));
|
||||
button(s,49,Material.BARRIER,"Close",p::closeInventory);
|
||||
com.example.dunegui.NativeMenus.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
}
|
||||
private void planetMenu(Player p) {
|
||||
Screen s=screen(p,"Planet Filter");
|
||||
|
|
@ -118,7 +118,7 @@ final class ExchangeMenu implements Listener, CommandExecutor, TabCompleter {
|
|||
String planet=PLANETS.get(i);
|
||||
button(s,11+i,Material.COMPASS,planet,()->{planets.put(p.getUniqueId(),planet); browse(p,"all",0,false,false);});
|
||||
}
|
||||
com.example.dunegui.NativeMenus.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
}
|
||||
private void admin(Player p) {
|
||||
if(!p.hasPermission("dune.admin")) return;
|
||||
|
|
@ -127,7 +127,7 @@ final class ExchangeMenu implements Listener, CommandExecutor, TabCompleter {
|
|||
button(s,24,Material.REDSTONE,"Check Database",()->{
|
||||
if(connected(p)) p.sendMessage(ChatColor.GREEN+"Shared Koopkring database connected.");
|
||||
});
|
||||
com.example.dunegui.NativeMenus.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
}
|
||||
private ItemStack decode(ExchangeStore.Listing offer) {
|
||||
ItemStack item;
|
||||
|
|
@ -162,7 +162,7 @@ final class ExchangeMenu implements Listener, CommandExecutor, TabCompleter {
|
|||
if(rows.isEmpty()) s.inventory.setItem(22,icon(Material.PAPER,"No matching listings","Try another planet or list a held item."));
|
||||
if(current>0) button(s,45,Material.ARROW,"Previous",()->browse(p,category,current-1,mine,admin));
|
||||
if(rows.size()>28) button(s,53,Material.ARROW,"Next",()->browse(p,category,current+1,mine,admin));
|
||||
com.example.dunegui.NativeMenus.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
com.example.dunegui.MenuPresentation.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
});
|
||||
}
|
||||
private void confirm(Player p,long id,boolean reclaim) {
|
||||
|
|
@ -175,7 +175,7 @@ final class ExchangeMenu implements Listener, CommandExecutor, TabCompleter {
|
|||
button(s,30,Material.LIME_CONCRETE,reclaim?"Confirm Reclaim":"Confirm Purchase",()->{
|
||||
p.closeInventory(); if(reclaim) cancel(p,id); else buy(p,id);
|
||||
});
|
||||
button(s,32,Material.RED_CONCRETE,"Never Mind",()->home(p)); com.example.dunegui.NativeMenus.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
button(s,32,Material.RED_CONCRETE,"Never Mind",()->home(p)); com.example.dunegui.MenuPresentation.inventory(plugin,p,s.title,s.inventory,s.actions);
|
||||
});
|
||||
}
|
||||
private boolean fits(Player p,ItemStack item,int amount) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
package com.example.dunegui;
|
||||
import static org.mockito.Mockito.*;
|
||||
import java.util.Map;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class MenuPresentationTest {
|
||||
public static class Receiver extends JavaPlugin { public void openSharedMenu(Player p,String title,Inventory model,Map<Integer,Runnable> actions){} }
|
||||
@Test void delegatesExistingActionsToReplacement(){
|
||||
try(var b=mockStatic(Bukkit.class)){
|
||||
var manager=mock(PluginManager.class);b.when(Bukkit::getPluginManager).thenReturn(manager);
|
||||
var receiver=mock(Receiver.class);when(receiver.isEnabled()).thenReturn(true);when(manager.getPlugin("DuneMenus")).thenReturn(receiver);
|
||||
var player=mock(Player.class);var model=mock(Inventory.class);Map<Integer,Runnable> actions=Map.of(13,()->{});
|
||||
MenuPresentation.inventory(mock(JavaPlugin.class),player,"Exchange",model,actions);
|
||||
verify(receiver).openSharedMenu(player,"Exchange",model,actions);verifyNoInteractions(player);
|
||||
}
|
||||
}
|
||||
@Test void absentProviderNeverOpensAnotherGui(){
|
||||
try(var b=mockStatic(Bukkit.class)){
|
||||
var manager=mock(PluginManager.class);b.when(Bukkit::getPluginManager).thenReturn(manager);
|
||||
var player=mock(Player.class);
|
||||
MenuPresentation.inventory(mock(JavaPlugin.class),player,"Exchange",mock(Inventory.class),Map.of());
|
||||
verify(player).sendMessage("DuneMenus is currently unavailable.");verifyNoMoreInteractions(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -202,8 +202,8 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
for(int i=0;i<LobbyBuilder.PADS.length;i++) { int[] p=LobbyBuilder.PADS[i]; if(Math.abs(x-p[0])<=3 && z>=p[1]-9 && z<=p[1]-7) { departure(e.getPlayer(),LobbyBuilder.PLANETS.get(i)); return; } }
|
||||
if(b.getType()==Material.LECTERN) {
|
||||
boolean rules=z>0; List<String> text=getConfig().getStringList(rules?"rules":"news");
|
||||
com.example.dunegui.NativeMenus.show(this,e.getPlayer(),rules?"Guild Charter":"Guild News",String.join("\n\n",text),List.of(
|
||||
new com.example.dunegui.NativeMenus.Choice("Close","",e.getPlayer()::closeInventory)));
|
||||
com.example.dunegui.MenuPresentation.show(this,e.getPlayer(),rules?"Guild Charter":"Guild News",String.join("\n\n",text),List.of(
|
||||
new com.example.dunegui.MenuPresentation.Choice("Close","",e.getPlayer()::closeInventory)));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -211,9 +211,9 @@ public final class DuneLobby extends JavaPlugin implements Listener, CommandExec
|
|||
TravelMenu menu=new TravelMenu(planet); ItemStack confirm=new ItemStack(Material.LIME_CONCRETE); ItemMeta meta=confirm.getItemMeta();
|
||||
meta.setDisplayName("Confirm departure: "+planet); meta.setLore(List.of("DuneEss fares and access rules apply when installed.")); confirm.setItemMeta(meta);
|
||||
menu.inventory.setItem(4,confirm);
|
||||
com.example.dunegui.NativeMenus.show(this,player,"Guild departure",List.of(
|
||||
new com.example.dunegui.NativeMenus.Choice("Confirm departure: "+planet,"DuneEss fares and access rules apply.",()->depart(player,planet)),
|
||||
new com.example.dunegui.NativeMenus.Choice("Cancel","",player::closeInventory)));
|
||||
com.example.dunegui.MenuPresentation.show(this,player,"Guild departure",List.of(
|
||||
new com.example.dunegui.MenuPresentation.Choice("Confirm departure: "+planet,"DuneEss fares and access rules apply.",()->depart(player,planet)),
|
||||
new com.example.dunegui.MenuPresentation.Choice("Cancel","",player::closeInventory)));
|
||||
}
|
||||
private void depart(Player player,String planet) {
|
||||
long now=System.currentTimeMillis(); if(now-travelCooldown.getOrDefault(player.getUniqueId(),0L)<5000) return;
|
||||
|
|
|
|||
|
|
@ -92,6 +92,13 @@ public final class DuneMenusPlugin extends DuneServicesPlugin implements TabExec
|
|||
new WarObjectiveMenu(this, player, target.deepCopy(), capture).open();
|
||||
}
|
||||
|
||||
public void openSharedMenu(Player player, String title, org.bukkit.inventory.Inventory model, Map<Integer,Runnable> actions) {
|
||||
if (!getServer().isPrimaryThread() || !player.isOnline() || !player.hasPermission("dunemenus.use")) return;
|
||||
String lower=title.toLowerCase(java.util.Locale.ROOT);
|
||||
String section=lower.contains("travel")||lower.contains("guild")?"travel":lower.contains("exchange")?"exchange":lower.contains("spice")?"spice":lower.contains("quest")?"missions":"hub";
|
||||
new ServiceMenu(this,player,section,title,"",model,actions).open();
|
||||
}
|
||||
|
||||
void requestPackStatus(Player player) {
|
||||
if (player.isOnline()) player.sendPluginMessage(this, PACK_CONTROL,
|
||||
"common-status".getBytes(java.nio.charset.StandardCharsets.US_ASCII));
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
package com.dunerealms.services;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.IntConsumer;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* Bukkit service for an optional Java fullscreen roleplay provider. It owns its
|
||||
* runtime-specific packet support and closes its scene before returning input.
|
||||
*/
|
||||
public interface DecisionsViewTransport {
|
||||
record Card(int slot, String title, List<String> lore, boolean actionable, String material) {
|
||||
public Card(int slot, String title, List<String> lore, boolean actionable) {
|
||||
this(slot, title, lore, actionable, "");
|
||||
}
|
||||
|
||||
public Card {
|
||||
lore = List.copyOf(lore);
|
||||
}
|
||||
}
|
||||
|
||||
enum Style { AUTO, ORGANISATION, EXCHANGE, EXCHANGE_CHECKOUT, HOUSE, JOURNAL, CODEX, ITEM_ARCHIVE, GUILD, SPICE, WORKSHOP, DECISION_DETAIL, WAR_MUSTER }
|
||||
record Identity(String logo, String mentat, int portrait) {}
|
||||
|
||||
record Document(String title, String description, List<Card> cards, Style style, Identity identity) {
|
||||
public Document(String title, String description, List<Card> cards) {
|
||||
this(title, description, cards, Style.AUTO, null);
|
||||
}
|
||||
|
||||
public Document {
|
||||
cards = List.copyOf(cards);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on the server thread. Return false on an unsupported runtime or if
|
||||
* opening fails. Release partial state before returning false. After a
|
||||
* successful open, call exactly one terminal callback on the server thread:
|
||||
* select a visible actionable slot, or close without selecting. Finish
|
||||
* transport cleanup before the callback. Never invoke it inside open.
|
||||
*/
|
||||
boolean open(Player viewer, Document document, IntConsumer select, Runnable close);
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@ public abstract class DuneServicesPlugin extends JavaPlugin implements Listener,
|
|||
String title="Spacing Guild · Imperial passage";
|
||||
int own=Arrays.asList(IDS).indexOf(house);Screen screen=screen(p,title,0xE330+own);
|
||||
var allowedDestinations=quotedDestinations(data.getAsJsonObject("guildQuote"));
|
||||
var routeCards=new ArrayList<DecisionsViewTransport.Card>();
|
||||
|
||||
for(int i=0;i<GuildRoutes.ALL.size();i++){
|
||||
var route=GuildRoutes.ALL.get(i);boolean allowed=allowedDestinations.contains(route.world());
|
||||
String unavailable="Unavailable · another House world";
|
||||
|
|
@ -201,21 +201,15 @@ public abstract class DuneServicesPlugin extends JavaPlugin implements Listener,
|
|||
screen.inventory.setItem(slot,item.clone());
|
||||
if(allowed)screen.actions.put(slot,()->bookPassage(p,data,route.world()));
|
||||
}
|
||||
routeCards.add(new DecisionsViewTransport.Card(centre,route.name(),List.of(allowed?
|
||||
(route.house().equals(house)?"Your House":"Imperial passage"):unavailable),allowed,
|
||||
"guild_world_"+route.world()+(allowed?"":"_locked")));
|
||||
}
|
||||
String cancellation="No fare is taken for a cancelled booking";
|
||||
String adviser="Return to your House adviser";
|
||||
button(screen,p,45,"Your Mentat",adviser,Material.ARROW,()->mentat(p,data));screen.actions.put(46,screen.actions.get(45));
|
||||
routeCards.add(new DecisionsViewTransport.Card(45,"Your Mentat",List.of(adviser),true));
|
||||
button(screen,p,49,"Cancel booking",cancellation,Material.BARRIER,()->{cancelBooking(p);travelMenu(p,data);});
|
||||
for(int slot:new int[]{48,50})screen.actions.put(slot,screen.actions.get(49));
|
||||
routeCards.add(new DecisionsViewTransport.Card(49,"Cancel booking",List.of(cancellation),true));
|
||||
if(guild!=null){
|
||||
String bookingLabel=booked==null?"Book passage":"Review booked passage";
|
||||
button(screen,p,53,bookingLabel,detail,Material.EMERALD,()->bookPassage(p,data));screen.actions.put(52,screen.actions.get(53));
|
||||
routeCards.add(new DecisionsViewTransport.Card(53,bookingLabel,List.of(),true));
|
||||
}
|
||||
String nativeDetail=detail;
|
||||
if(booked!=null)nativeDetail+="\nBooked to "+booked.world()+" · "+String.format(Locale.ROOT,"%.2f DM",booked.fare()/100.0);
|
||||
|
|
@ -338,7 +332,7 @@ public abstract class DuneServicesPlugin extends JavaPlugin implements Listener,
|
|||
}
|
||||
private static void menuArt(ItemStack item,String artwork){var meta=item.getItemMeta();meta.getPersistentDataContainer().set(new NamespacedKey("dunerealms","menu_art"),PersistentDataType.STRING,artwork);item.setItemMeta(meta);}
|
||||
private void report(Player p){p.closeInventory();p.sendMessage(Component.text("Open your Mentat Report →",NamedTextColor.GOLD).clickEvent(net.kyori.adventure.text.event.ClickEvent.openUrl("https://clans.dunerealms.com/#quests/quests")));}
|
||||
private Screen screen(Player p,String title,int glyph){Screen s=new Screen(p);Component heading=guiPackLoaded.contains(p.getUniqueId())?Component.text(GuiArtwork.background(glyph),NamedTextColor.WHITE).font(Key.key("dunerealms:house_selector")):Component.text(title,NamedTextColor.GOLD);s.inventory=Bukkit.createInventory(s,54,heading);return s;}
|
||||
private Screen screen(Player p,String title,int glyph){Screen s=new Screen(p);Component heading=Component.text(title,NamedTextColor.GOLD);s.inventory=Bukkit.createInventory(s,54,heading);return s;}
|
||||
private ItemStack icon(String title,String description,Material material){ItemStack item=new ItemStack(material);var meta=item.getItemMeta();meta.displayName(Component.text(title,NamedTextColor.GOLD));meta.lore(List.of(Component.text(description,NamedTextColor.GRAY)));item.setItemMeta(meta);return item;}
|
||||
private void button(Screen s,Player p,int slot,String title,String description,Material material,Runnable action){s.inventory.setItem(slot,icon(title,description,material));s.actions.put(slot,action);}
|
||||
private void expire(Screen screen){Bukkit.getScheduler().runTaskLater(this,screen.gate::expire,2400L);}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
package com.dunerealms.services;
|
||||
final class ExchangeArtwork {
|
||||
static String background(int screen){if(screen<0||screen>4)throw new IllegalArgumentException("Unknown Exchange screen");var out=new StringBuilder("\uE7FF");for(int row=0;row<4;row++){for(int col=0;col<4;col++)out.append((char)(0xE700+screen*16+row*4+col)).append('\uE7FE');out.append('\uE7FD');}return out.toString();}
|
||||
private ExchangeArtwork(){}
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ final class ExchangeMenus implements Listener,AutoCloseable {
|
|||
private record Purchase(JsonObject row,int amount,UUID request){Purchase quantity(int n){return new Purchase(row,n,UUID.randomUUID());}}
|
||||
private static final class Panel implements DuneMenuInventory {
|
||||
final UUID owner,world;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final List<BedrockForms.Choice> choices=new ArrayList<>();final Inventory inventory;final String title;final boolean artwork;String description="Central bank · J.A.R.V.I.S. Exchange";
|
||||
Panel(Player p,String title,boolean artwork,int screen){owner=p.getUniqueId();world=p.getWorld().getUID();gate=new GuiSession(owner);this.title=title;this.artwork=artwork;inventory=Bukkit.createInventory(this,54,artwork?Component.text(ExchangeArtwork.background(screen),NamedTextColor.WHITE).font(net.kyori.adventure.key.Key.key("dunerealms:exchange")):Component.text(title,NamedTextColor.GOLD));}
|
||||
Panel(Player p,String title,boolean artwork,int screen){owner=p.getUniqueId();world=p.getWorld().getUID();gate=new GuiSession(owner);this.title=title;this.artwork=artwork;inventory=Bukkit.createInventory(this,54,Component.text(title,NamedTextColor.GOLD));}
|
||||
public Inventory getInventory(){return inventory;}
|
||||
}
|
||||
private final java.util.concurrent.ConcurrentMap<UUID,org.bukkit.conversations.Conversation> priceInputs=new java.util.concurrent.ConcurrentHashMap<>();
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
package com.dunerealms.services;
|
||||
/** Four by four bounded bitmap glyphs, each <=256px, compose one crisp screen. */
|
||||
final class GuiArtwork {
|
||||
static String background(int oldGlyph){
|
||||
int index=oldGlyph>=0xE340?oldGlyph-0xE340+16:oldGlyph>=0xE330?oldGlyph-0xE330+11:oldGlyph>=0xE310?oldGlyph-0xE310+6:oldGlyph-0xE300;
|
||||
if(index<0||index>19)throw new IllegalArgumentException("Unknown GUI screen");
|
||||
StringBuilder result=new StringBuilder("\uE32F");
|
||||
for(int row=0;row<4;row++){for(int column=0;column<4;column++)result.append((char)(0xE400+index*16+row*4+column)).append('\uE32E');result.append('\uE32D');}
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -22,12 +22,12 @@ final class OrganisationMenus implements Listener {
|
|||
|
||||
|
||||
private static final class Panel implements DuneMenuInventory {
|
||||
final UUID owner;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final Set<Integer> nativeReadOnly=new HashSet<>();final Map<Integer,BedrockForms.Choice> choices=new TreeMap<>();String title;String nativeSetting;DecisionsViewTransport.Style nativeStyle;boolean artwork;Inventory inventory;
|
||||
final UUID owner;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final Set<Integer> nativeReadOnly=new HashSet<>();final Map<Integer,BedrockForms.Choice> choices=new TreeMap<>();String title;String nativeSetting;boolean artwork;Inventory inventory;
|
||||
Panel(Player p){owner=p.getUniqueId();gate=new GuiSession(owner);}
|
||||
public Inventory getInventory(){return inventory;}
|
||||
}
|
||||
OrganisationMenus(DuneServicesPlugin plugin,HouseBridge bridge,Consumer<Player> mentat,Consumer<Player> travel,Consumer<Player> house,Consumer<Player> quests,Consumer<Player> decisions,Consumer<Player> exchange,Consumer<Player> spice,java.util.function.Predicate<Player> artwork){this.plugin=plugin;this.bridge=bridge;this.mentat=mentat;this.travel=travel;this.house=house;this.quests=quests;this.decisions=decisions;this.exchange=exchange;this.spice=spice;this.artwork=artwork;Bukkit.getPluginManager().registerEvents(this,plugin);}
|
||||
void console(Player p){var panel=panel(p,"Imperial Codex",0);panel.nativeStyle=DecisionsViewTransport.Style.CODEX;panel.nativeSetting="development.fullscreen-codex-viewers";put(panel,8,"Emergency rescue · 1,000 DM","Teleport to safety and heal · 24-hour cooldown",Material.TOTEM_OF_UNDYING,()->p.performCommand("duneess:rescue"));if(p.getWorld().getName().equals("arrakis"))put(panel,28,"Spice buyers","Spacing Guild · Smuggler · P&O payout",Material.ORANGE_DYE,()->spice.accept(p));put(panel,34,"Exchange","Buy, sell and collect your purchases",Material.CHEST,()->exchange.accept(p));var exchangeIcon=new ItemStack(Material.CHEST);var exchangeMeta=exchangeIcon.getItemMeta();exchangeMeta.displayName(Component.text("Exchange",NamedTextColor.GOLD));exchangeMeta.lore(List.of(Component.text("Buy · Sell · Add held item",NamedTextColor.GRAY)));exchangeIcon.setItemMeta(exchangeMeta);panel.inventory.setItem(34,exchangeIcon);put(panel,31,"Mission journal","Personal Experience and Reputation",Material.WRITABLE_BOOK,()->quests.accept(p));put(panel,32,"Decisions","Your current J.A.R.V.I.S. decisions",Material.ENCHANTED_BOOK,()->decisions.accept(p));put(panel,4,"Item lore archive","Preview the shared item lore cards",Material.WRITABLE_BOOK,()->lore(p));put(panel,19,"Clan","Your clan and Home Block",Material.GREEN_BANNER,()->open(p,"clans"));put(panel,22,"Company","Your companies and Home Blocks",Material.CYAN_BANNER,()->open(p,"companies"));put(panel,25,"POL","Your current political offices",Material.PURPLE_BANNER,()->open(p,"offices"));put(panel,37,"Your Mentat","Your personal briefing",Material.BOOK,()->mentat.accept(p));put(panel,40,"Spacing Guild","Transport and boarding windows",Material.COMPASS,()->travel.accept(p));put(panel,43,"Your House","Your allegiance and adviser",Material.NETHER_STAR,()->house.accept(p));close(panel,p);show(p,panel);}
|
||||
void console(Player p){var panel=panel(p,"Imperial Codex",0);panel.nativeSetting="development.fullscreen-codex-viewers";put(panel,8,"Emergency rescue · 1,000 DM","Teleport to safety and heal · 24-hour cooldown",Material.TOTEM_OF_UNDYING,()->p.performCommand("duneess:rescue"));if(p.getWorld().getName().equals("arrakis"))put(panel,28,"Spice buyers","Spacing Guild · Smuggler · P&O payout",Material.ORANGE_DYE,()->spice.accept(p));put(panel,34,"Exchange","Buy, sell and collect your purchases",Material.CHEST,()->exchange.accept(p));var exchangeIcon=new ItemStack(Material.CHEST);var exchangeMeta=exchangeIcon.getItemMeta();exchangeMeta.displayName(Component.text("Exchange",NamedTextColor.GOLD));exchangeMeta.lore(List.of(Component.text("Buy · Sell · Add held item",NamedTextColor.GRAY)));exchangeIcon.setItemMeta(exchangeMeta);panel.inventory.setItem(34,exchangeIcon);put(panel,31,"Mission journal","Personal Experience and Reputation",Material.WRITABLE_BOOK,()->quests.accept(p));put(panel,32,"Decisions","Your current J.A.R.V.I.S. decisions",Material.ENCHANTED_BOOK,()->decisions.accept(p));put(panel,4,"Item lore archive","Preview the shared item lore cards",Material.WRITABLE_BOOK,()->lore(p));put(panel,19,"Clan","Your clan and Home Block",Material.GREEN_BANNER,()->open(p,"clans"));put(panel,22,"Company","Your companies and Home Blocks",Material.CYAN_BANNER,()->open(p,"companies"));put(panel,25,"POL","Your current political offices",Material.PURPLE_BANNER,()->open(p,"offices"));put(panel,37,"Your Mentat","Your personal briefing",Material.BOOK,()->mentat.accept(p));put(panel,40,"Spacing Guild","Transport and boarding windows",Material.COMPASS,()->travel.accept(p));put(panel,43,"Your House","Your allegiance and adviser",Material.NETHER_STAR,()->house.accept(p));close(panel,p);show(p,panel);}
|
||||
void open(Player p,String kind){
|
||||
if(!busy.add(p.getUniqueId()))return;
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject data=null;try{data=bridge.organisations(p.getUniqueId());}catch(Exception ignored){}JsonObject result=data;if(!plugin.isEnabled())return;
|
||||
|
|
@ -96,7 +96,7 @@ final class OrganisationMenus implements Listener {
|
|||
});
|
||||
}
|
||||
void lore(Player p){
|
||||
var panel=panel(p,"Item lore archive · Preview",false);panel.nativeStyle=DecisionsViewTransport.Style.ITEM_ARCHIVE;panel.nativeSetting="development.fullscreen-codex-viewers";String[] kinds={"MENU","EQUIPMENT","KIT","COMPONENT","TICKET","CASH","RIHLA","DEED","QUEST"};Material[] materials={Material.COMPASS,Material.IRON_SWORD,Material.CHEST,Material.AMETHYST_SHARD,Material.PAPER,Material.GOLD_NUGGET,Material.WRITABLE_BOOK,Material.MAP,Material.BOOK};
|
||||
var panel=panel(p,"Item lore archive · Preview",false);panel.nativeSetting="development.fullscreen-codex-viewers";String[] kinds={"MENU","EQUIPMENT","KIT","COMPONENT","TICKET","CASH","RIHLA","DEED","QUEST"};Material[] materials={Material.COMPASS,Material.IRON_SWORD,Material.CHEST,Material.AMETHYST_SHARD,Material.PAPER,Material.GOLD_NUGGET,Material.WRITABLE_BOOK,Material.MAP,Material.BOOK};
|
||||
for(int i=0;i<kinds.length;i++){String kind=kinds[i];Map<String,String> facts=switch(kind){case "EQUIPMENT"->Map.of("Grade","From issued equipment key","House","From House key","Durability","From actual item");case "KIT"->Map.of("Contents","From kit definition","State","Design preview");case "COMPONENT"->Map.of("Recipe","From crafting definition");case "TICKET"->Map.of("Route","From passage key","Departure",":00 / :20 / :40");case "CASH"->Map.of("Value","From bank withdrawal","State","Design preview");case "RIHLA"->Map.of("Recipient","From RIA key","Amount","From transfer record");case "DEED"->Map.of("Organisation","From registered deed","Holder","From current authority");case "QUEST"->Map.of("Objective","From mission key","Progress","From verified events");default->Map.of("Service","DuneRealms","Access","Current JARVIS keys");};try{panel.inventory.setItem(18+i,bridge.lorePreview(kind,materials[i],kind.replace('_',' '),facts));}catch(Exception unavailable){p.sendMessage("The lore renderer is temporarily unavailable.");return;}}
|
||||
put(panel,45,"Back","Imperial Codex",Material.ARROW,()->console(p));close(panel,p);show(p,panel);
|
||||
}
|
||||
|
|
@ -182,7 +182,7 @@ final class OrganisationMenus implements Listener {
|
|||
});
|
||||
}
|
||||
private void warStatus(Player p,Runnable back){
|
||||
var screen=panel(p,"War report",false);screen.nativeStyle=DecisionsViewTransport.Style.ORGANISATION;screen.nativeSetting="development.fullscreen-organisation-viewers";JsonObject result;
|
||||
var screen=panel(p,"War report",false);screen.nativeSetting="development.fullscreen-organisation-viewers";JsonObject result;
|
||||
try{result=bridge.warReport(p.getUniqueId());}catch(Exception unavailable){p.sendMessage("War reports are temporarily unavailable.");return;}
|
||||
var campaigns=result.getAsJsonArray("campaigns");
|
||||
if(campaigns==null||campaigns.isEmpty())put(screen,22,"No active deployment","No current roster lease.\nArrange wars through your Clan or POL control panel.",Material.MAP,()->warStatus(p,back));
|
||||
|
|
@ -223,11 +223,11 @@ final class OrganisationMenus implements Listener {
|
|||
private Panel organisationPanel(Player player,String title,boolean company){
|
||||
var screen=panel(player,title,company);
|
||||
screen.nativeSetting="development.fullscreen-organisation-viewers";
|
||||
screen.nativeStyle=DecisionsViewTransport.Style.ORGANISATION;
|
||||
|
||||
return screen;
|
||||
}
|
||||
private Panel panel(Player p,String title,boolean company){var panel=new Panel(p);panel.title=title;panel.inventory=Bukkit.createInventory(panel,54,Component.text(title,company?NamedTextColor.AQUA:NamedTextColor.GOLD));for(int slot=0;slot<54;slot++)if(slot<9||slot>=45||slot%9==0||slot%9==8){var trim=new ItemStack(company?Material.CYAN_STAINED_GLASS_PANE:Material.GREEN_STAINED_GLASS_PANE);var meta=trim.getItemMeta();meta.displayName(Component.empty());trim.setItemMeta(meta);panel.inventory.setItem(slot,trim);}return panel;}
|
||||
private Panel panel(Player p,String title,int screen){if(!artwork.test(p)||BedrockForms.isBedrock(p))return panel(p,title,screen==2);var panel=new Panel(p);panel.title=title;panel.artwork=true;panel.inventory=Bukkit.createInventory(panel,54,Component.text(GuiArtwork.background(0xE340+screen),NamedTextColor.WHITE).font(net.kyori.adventure.key.Key.key("dunerealms:house_selector")));return panel;}
|
||||
private Panel panel(Player p,String title,int screen){if(!artwork.test(p)||BedrockForms.isBedrock(p))return panel(p,title,screen==2);var panel=new Panel(p);panel.title=title;panel.artwork=true;panel.inventory=Bukkit.createInventory(panel,54,Component.text(title,NamedTextColor.GOLD));return panel;}
|
||||
private void put(Panel panel,int slot,String title,String description,Material material,Runnable action){var item=new ItemStack(material);var meta=item.getItemMeta();meta.displayName(Component.text(title,NamedTextColor.GOLD));meta.lore(Arrays.stream(description.split("\n")).map(line->Component.text(line,NamedTextColor.GRAY)).toList());item.setItemMeta(meta);panel.inventory.setItem(slot,item);panel.actions.put(slot,action);panel.choices.put(slot,new BedrockForms.Choice(title,description,action));}
|
||||
private void close(Panel panel,Player p){put(panel,53,"Close","Return to the game",Material.BARRIER,p::closeInventory);}
|
||||
private void show(Player p,Panel panel){plugin.showService(p,"politics",panel.title,"Current organisation keys",panel.inventory,panel.actions,panel.gate);}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
id: a7b5ab7d-d8d8-5b51-b016-71a5f4c00008
|
||||
world:
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v7.zip
|
||||
sha1: 2ff3d59b43c4cd876f14d58d2e77e1b60b12cfe3
|
||||
sha1: 0fa04f02f8c3e7a462f34c760233bec9b28b71c4
|
||||
lobby:
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v7.zip
|
||||
sha1: 2ff3d59b43c4cd876f14d58d2e77e1b60b12cfe3
|
||||
sha1: 0fa04f02f8c3e7a462f34c760233bec9b28b71c4
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ final class ConfigurableGui {
|
|||
}
|
||||
opened.put(p.getUniqueId(),page);
|
||||
actions.put(p.getUniqueId(),slots);
|
||||
Map<Integer,Runnable> nativeActions=new HashMap<>(); slots.forEach((slot,action)->nativeActions.put(slot,()->execute(p,action))); com.example.dunegui.NativeMenus.inventory(plugin,p,title,inv,nativeActions);
|
||||
Map<Integer,Runnable> nativeActions=new HashMap<>(); slots.forEach((slot,action)->nativeActions.put(slot,()->execute(p,action))); com.example.dunegui.MenuPresentation.inventory(plugin,p,title,inv,nativeActions);
|
||||
}
|
||||
void click(InventoryClickEvent e) {
|
||||
if(!(e.getWhoClicked() instanceof Player p)) return;
|
||||
|
|
@ -136,7 +136,7 @@ final class ConfigurableGui {
|
|||
inventory.setItem(15,officeItem("water","Welvaart House",List.of("Landsraad appointment · water rights",officeHolder(offices,"houseOfWater","Not appointed"))));
|
||||
inventory.setItem(13,officeItem("crown","By appointment of the Emperor",List.of(officeHolder(offices,"emperor","Not elected"),"Appointments retain their existing election rules")));
|
||||
inventory.setItem(22,item(player,"ARROW","&eBack",List.of()));
|
||||
opened.put(player.getUniqueId(),"appointments");actions.put(player.getUniqueId(),Map.of(22,"open:main"));com.example.dunegui.NativeMenus.inventory(plugin,player,color("&6Landsraad appointments"),inventory,Map.of(22,()->open(player,"main")));
|
||||
opened.put(player.getUniqueId(),"appointments");actions.put(player.getUniqueId(),Map.of(22,"open:main"));com.example.dunegui.MenuPresentation.inventory(plugin,player,color("&6Landsraad appointments"),inventory,Map.of(22,()->open(player,"main")));
|
||||
}
|
||||
private String officeHolder(Map<String,Object> offices,String key,String empty){Object value=offices.get(key);return value==null?empty:com.example.dunegui.PublicNames.text(String.valueOf(value));}
|
||||
void drag(InventoryDragEvent e) {
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"guild_navigator": {
|
||||
"cell": 6,
|
||||
"file": "spice_guild.png"
|
||||
},
|
||||
"esmar_tuek": {
|
||||
"file": "spice_smuggler.png",
|
||||
"state": "existing-profile-placeholder",
|
||||
"cell": 7
|
||||
},
|
||||
"source": "website/web/assets/mentat-portraits-atlas-v1.png"
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 390 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 279 KiB |
|
|
@ -1,59 +0,0 @@
|
|||
{
|
||||
"baseId": "a7b5ab7d-d8d8-5b51-b016-71a5f4c00008",
|
||||
"base": {
|
||||
"world": {
|
||||
"filename": "DuneRealms-Network-Artwork-v6.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v6.zip",
|
||||
"sha1": "f86189d72abc0690a08e01b7707998fabd961b8d",
|
||||
"sha256": "ed2533646ee5e19a1dbfeec66e5791d1011a5107e6fcc4153372e431dfc5f56a",
|
||||
"bytes": 29291488,
|
||||
"entries": 842,
|
||||
"previous": {
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v5.zip",
|
||||
"sha1": "4699d6b181d72a64265c48e82427dd670a8c3fac",
|
||||
"sha256": "40346e07f5d46d9ae6172a968c3a661ab22fa5563fe928d66f3daecbac78276d"
|
||||
}
|
||||
},
|
||||
"lobby": {
|
||||
"filename": "DuneRealms-Network-Artwork-v6.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v6.zip",
|
||||
"sha1": "f86189d72abc0690a08e01b7707998fabd961b8d",
|
||||
"sha256": "ed2533646ee5e19a1dbfeec66e5791d1011a5107e6fcc4153372e431dfc5f56a",
|
||||
"bytes": 29291488,
|
||||
"entries": 842,
|
||||
"previous": {
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v5.zip",
|
||||
"sha1": "4699d6b181d72a64265c48e82427dd670a8c3fac",
|
||||
"sha256": "40346e07f5d46d9ae6172a968c3a661ab22fa5563fe928d66f3daecbac78276d"
|
||||
}
|
||||
}
|
||||
},
|
||||
"planets": {
|
||||
"arrakis": {
|
||||
"filename": "DuneRealms-Materials-arrakis-v7.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-arrakis-v7.zip",
|
||||
"sha1": "ff44f19f160a9fc7ef076a80557d27f8283afe13",
|
||||
"sha256": "e73bfadeb46332ff2220a193cb4676cf119feb79a4d7d0c1afc3d32922f46e07",
|
||||
"bytes": 961957,
|
||||
"entries": 1471,
|
||||
"previous": {
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-arrakis-v6.zip",
|
||||
"sha1": "2ad1703e99de297e72663fdd5d02bf928b53b0de",
|
||||
"sha256": "ced65b0b686b09a8561c0fda675a45589db9b8cfcfca61207932db54c7f5c930"
|
||||
}
|
||||
},
|
||||
"guild": {
|
||||
"filename": "DuneRealms-Materials-guild-v4.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-guild-v4.zip",
|
||||
"sha1": "2f7dc54ade43353feb3dffddaec45398b2f11f0a",
|
||||
"sha256": "6e732b0545b37bacd695d3f834d256ff9e06b28f1f540c6432c31162451ebf8f",
|
||||
"bytes": 985384,
|
||||
"entries": 1457,
|
||||
"previous": {
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-guild-v3.zip",
|
||||
"sha1": "2e37e41aaeb80f6eac97fb40dc08572708d2644f",
|
||||
"sha256": "fbe7be9aadb62805ab68ec86603aeacb7b49b56da6685ba36052b97562d7835c"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
# Fancy UI migration
|
||||
|
||||
Historical comparison only. The selected implementation uses MCGUI; see
|
||||
[the active menu integration](../mcgui/README.md).
|
||||
|
||||
Requested replacement: https://builtbybit.com/resources/fancy-ui.115209/
|
||||
Documentation checked 2026-11-23: https://nusse.dev/docs/fancyui
|
||||
|
||||
## Deployment prerequisite
|
||||
|
||||
The licensed FancyUI JAR has not been supplied. Do not remove or disable the
|
||||
working DuneRealms menus until the replacement has been loaded and its generated
|
||||
pack has been verified. PacketEvents is required by FancyUI. PlaceholderAPI is
|
||||
optional according to the creator's documentation; use it only for actual data
|
||||
bindings that need it.
|
||||
|
||||
## Presentation and authority
|
||||
|
||||
FancyUI supplies the presentation. DunerealmsGUI retains the existing player
|
||||
sessions and actions; JarvisTranslator retains the central key and transaction
|
||||
checks. Buttons must invoke the same current-player action as the existing menu.
|
||||
They must not issue native give, money, claim, membership or teleport commands.
|
||||
|
||||
| Screen | Existing action owner | Required live state |
|
||||
| --- | --- | --- |
|
||||
| Imperial Codex | OrganisationMenus.console | Current player |
|
||||
| House selector | DuneGUI.select / fetch | Current House key, selected House, confirmation |
|
||||
| Mentat | DuneGUI.mentat | Current House and adviser |
|
||||
| Spacing Guild | DuneGUI.openGuild / travelMenu | House, boarding window, central bank quote, reservation |
|
||||
| Exchange | ExchangeMenus | Current catalogue revision, bank quote, durable delivery |
|
||||
| Quests / quartermaster | QuestMenus | Verified journal, prerequisites, physical turn-in |
|
||||
| Clan / company / POL | OrganisationMenus | Current deed, role, home world and claim capacity |
|
||||
|
||||
Preserve the DuneRealms green/gold theme, distinct company/POL colours, and blue
|
||||
for quests that require an ingame interaction. Reuse existing House seals,
|
||||
adviser portraits and item artwork. Dynamic text must be treated as text rather
|
||||
than interpreted MiniMessage supplied by a player.
|
||||
|
||||
## Pack and client migration
|
||||
|
||||
1. Inspect the supplied JAR and exact API signatures; pin its version and digest.
|
||||
2. Load it with PacketEvents in an isolated Paper instance first.
|
||||
3. Generate the pages and run `fui reload`, `fui pack`, then `fui packinfo`.
|
||||
4. Check the generated font/shader namespaces against the current GUI, lorecard
|
||||
and item pack. Preserve current item models, lorecards and entity textures.
|
||||
5. Publish a versioned pack with a new checksum and confirm the loaded-pack
|
||||
acknowledgement before switching the Imperial Codex entry point.
|
||||
6. Test mouse, controller/keyboard, small screens and Geyser/Floodgate. Keep the
|
||||
existing Bedrock forms until FancyUI compatibility is actually established.
|
||||
7. Roll out the verified build and pack together. Keep Jarvis actions unchanged
|
||||
and switch the remaining screens only after their actual interactions pass.
|
||||
|
||||
The creator documents `api.open`, per-player `setText`/`setVisible`/`setItem` and
|
||||
cancellable click events. These support using the existing action callbacks
|
||||
without making the page configuration a second authority or data store. Do not
|
||||
guess the API package names before inspecting the licensed JAR.
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue

Staff