Set container title in anvilmenu

This commit is contained in:
fullwall 2023-05-10 23:58:31 +08:00
parent fa9b99a05b
commit 0eb997be33

View File

@ -1256,6 +1256,7 @@ public class NMSImpl implements NMSBridge {
return this.bukkitEntity; return this.bukkitEntity;
} }
}; };
container.setTitle(MutableComponent.create(new LiteralContents(title == null ? "" : title)));
container.getBukkitView().setItem(0, anvil.getItem(0)); container.getBukkitView().setItem(0, anvil.getItem(0));
container.getBukkitView().setItem(1, anvil.getItem(1)); container.getBukkitView().setItem(1, anvil.getItem(1));
container.checkReachable = false; container.checkReachable = false;