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
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description public final static LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description HTMenuTypeWithContext(Class<C> clazz, HTContainerFactory<MENU, C> factory, IContainerFactory<MENU> constructor)
-
Method Summary
Modifier and Type Method Description final MenuConstructorcreate(C context)指定されたcontextからMenuConstructorのインスタンスを作成します。 final MenuConstructorcreateUnchecked(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
-
-