Class BedrockNativeContainers

java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.container.BedrockNativeContainers

public final class BedrockNativeContainers extends Object
Accepts presentation only after Java opened the exact menu; never queues it for a later menu.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    admitPlayerScreen(net.minecraft.client.gui.screens.Screen screen)
     
    static void
    contents(net.minecraft.client.multiplayer.ClientPacketListener owner, int menuId)
    Called after vanilla applied a real content packet on the client thread.
    static void
     
    static void
     
    static boolean
    replacing(net.minecraft.world.inventory.AbstractContainerMenu menu)
    Suppress menu teardown only during a presentation swap of the same live menu object.
    static void
    screenInstalled(net.minecraft.client.gui.screens.Screen screen)
    Called after Java resynchronizes the pointer and before the first frame.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.