Class BedrockNativeContainers
java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.container.BedrockNativeContainers
Accepts presentation only after Java opened the exact menu; never queues it for a later menu.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanadmitPlayerScreen(net.minecraft.client.gui.screens.Screen screen) static voidcontents(net.minecraft.client.multiplayer.ClientPacketListener owner, int menuId) Called after vanilla applied a real content packet on the client thread.static voidstatic voidregister()static booleanreplacing(net.minecraft.world.inventory.AbstractContainerMenu menu) Suppress menu teardown only during a presentation swap of the same live menu object.static voidscreenInstalled(net.minecraft.client.gui.screens.Screen screen) Called after Java resynchronizes the pointer and before the first frame.
-
Method Details
-
register
public static void register() -
contents
public static void contents(net.minecraft.client.multiplayer.ClientPacketListener owner, int menuId) Called after vanilla applied a real content packet on the client thread. -
playerScreenInstalled
public static void playerScreenInstalled() -
admitPlayerScreen
public static boolean admitPlayerScreen(net.minecraft.client.gui.screens.Screen screen) -
screenInstalled
public static void screenInstalled(net.minecraft.client.gui.screens.Screen screen) Called after Java resynchronizes the pointer and before the first frame. -
replacing
public static boolean replacing(net.minecraft.world.inventory.AbstractContainerMenu menu) Suppress menu teardown only during a presentation swap of the same live menu object.
-