Class CommonMenuScreenRegister

java.lang.Object
info.u_team.u_team_core.impl.common.CommonMenuScreenRegister
All Implemented Interfaces:
MenuScreenRegister
Direct Known Subclasses:
FabricMenuScreenRegister

public abstract class CommonMenuScreenRegister extends Object implements MenuScreenRegister
  • Nested Class Summary

    Nested classes/interfaces inherited from interface info.u_team.u_team_core.api.registry.client.MenuScreenRegister

    MenuScreenRegister.Factory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<Supplier<? extends net.minecraft.world.inventory.MenuType<?>>,net.minecraft.client.gui.screens.MenuScreens.ScreenConstructor<?,?>>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <M extends net.minecraft.world.inventory.AbstractContainerMenu, U extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<M>>
    void
    register(Supplier<? extends net.minecraft.world.inventory.MenuType<? extends M>> supplier, net.minecraft.client.gui.screens.MenuScreens.ScreenConstructor<M,U> constructor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface info.u_team.u_team_core.api.registry.client.MenuScreenRegister

    register
  • Field Details

    • screens

      protected final Map<Supplier<? extends net.minecraft.world.inventory.MenuType<?>>,net.minecraft.client.gui.screens.MenuScreens.ScreenConstructor<?,?>> screens
  • Constructor Details

    • CommonMenuScreenRegister

      protected CommonMenuScreenRegister()
  • Method Details

    • register

      public <M extends net.minecraft.world.inventory.AbstractContainerMenu, U extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<M>> void register(Supplier<? extends net.minecraft.world.inventory.MenuType<? extends M>> supplier, net.minecraft.client.gui.screens.MenuScreens.ScreenConstructor<M,U> constructor)
      Specified by:
      register in interface MenuScreenRegister