Class HTMenuTypeWithContext

  • All Implemented Interfaces:
    hiiragi283.core.api.inventory.container.type.HTContainerFactory , net.minecraft.world.flag.FeatureElement , net.neoforged.neoforge.common.extensions.IMenuTypeExtension

    
    public final class HTMenuTypeWithContext<MENU extends AbstractContainerMenu, C extends Object>
    extends HTMenuType<MENU, HTContainerFactory<MENU, C>> implements HTContainerFactory<MENU, C>
                        

    追加のデータを受け取るHTMenuTypeの拡張クラスです。

    Since:

    0.4.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Logger LOGGER
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final MenuConstructor create(C context) 指定されたcontextからMenuConstructorのインスタンスを作成します。
      final MenuConstructor createUnchecked(Object obj) 指定されたobjからMenuConstructorのインスタンスを作成します。
      • Methods inherited from class hiiragi283.core.api.inventory.container.type.HTContainerFactory

        create
      • Methods inherited from class net.minecraft.world.inventory.MenuType

        create
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IMenuTypeExtension

        create
      • Methods inherited from class net.minecraft.world.flag.FeatureElement

        isEnabled, requiredFeatures
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • create

         final MenuConstructor create(C context)

        指定されたcontextからMenuConstructorのインスタンスを作成します。

      • createUnchecked

         final MenuConstructor createUnchecked(Object obj)

        指定されたobjからMenuConstructorのインスタンスを作成します。

        Returns:

        objCを継承していない場合はnull