-
Notifications
You must be signed in to change notification settings - Fork 10
/
IronShulkerBoxesMenuTypes.java
21 lines (17 loc) · 1.96 KB
/
IronShulkerBoxesMenuTypes.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.progwml6.ironshulkerbox.common.registraton;
import com.progwml6.ironshulkerbox.IronShulkerBoxes;
import com.progwml6.ironshulkerbox.common.inventory.IronShulkerBoxMenu;
import net.minecraft.world.flag.FeatureFlags;
import net.minecraft.world.inventory.MenuType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
public class IronShulkerBoxesMenuTypes {
public static final DeferredRegister<MenuType<?>> MENU_TYPES = DeferredRegister.create(ForgeRegistries.MENU_TYPES, IronShulkerBoxes.MOD_ID);
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> IRON_SHULKER_BOX = MENU_TYPES.register("iron_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createIronContainer, FeatureFlags.REGISTRY.allFlags()));
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> GOLD_SHULKER_BOX = MENU_TYPES.register("gold_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createGoldContainer, FeatureFlags.REGISTRY.allFlags()));
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> DIAMOND_SHULKER_BOX = MENU_TYPES.register("diamond_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createDiamondContainer, FeatureFlags.REGISTRY.allFlags()));
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> CRYSTAL_SHULKER_BOX = MENU_TYPES.register("crystal_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createCrystalContainer, FeatureFlags.REGISTRY.allFlags()));
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> COPPER_SHULKER_BOX = MENU_TYPES.register("copper_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createCopperContainer, FeatureFlags.REGISTRY.allFlags()));
public static final RegistryObject<MenuType<IronShulkerBoxMenu>> OBSIDIAN_SHULKER_BOX = MENU_TYPES.register("obsidian_shulker_box", () -> new MenuType<>(IronShulkerBoxMenu::createObsidianContainer, FeatureFlags.REGISTRY.allFlags()));
}