Description
Features
- Displays a searchable Beyond Dimensions network sidebar on the left side of all
AbstractContainerScreenscreens. - The sidebar is shown only when the server confirms that the player has an available Beyond Dimensions network.
- Left-click extracts one stack from the network; right-click extracts one item. Search supports both display names and registry names.
- “Move Player Items” and “Move Container Items” independently control Shift-click behavior.
- “Deposit Container” stores items from the currently open container into the network. “Deposit Inventory” only processes the player’s main inventory; the hotbar is excluded.
- Default shortcuts:
Ffor “Deposit Container” andGfor “Deposit Inventory`. They only work while the sidebar is visible and the search box is not focused. - Player and container Shift-transfer settings are saved to the client file
config/better_beyond_dimensions-settings.jsonand synchronized with the server when a new screen is opened. - All network storage operations and Shift-click interception are validated and executed server-side.
Sidebar Display Event
SidebarDisplayEvent is fired on the client after the sidebar has been created and before it is displayed. The event can access the current Screen, disable the functionality of individual buttons, override button text or tooltips, or completely disable the sidebar for the current screen. The event only affects the current screen instance and does not modify the server-side menu.
For example, to disable “Deposit Container” on the crafting screen and change its tooltip to “Disabled”:
private static void onSidebarDisplay(SidebarDisplayEvent event)
{
if (event.getScreen() instanceof CraftingScreen)
{
event.disableButton(SidebarDisplayEvent.ButtonId.DEPOSIT_CONTAINER);
event.setButtonTooltip(
SidebarDisplayEvent.ButtonId.DEPOSIT_CONTAINER,
Component.literal("Disabled")
);
}
}
