Example usage for net.minecraftforge.common.extensions IForgeContainerType create

List of usage examples for net.minecraftforge.common.extensions IForgeContainerType create

Introduction

In this page you can find the example usage for net.minecraftforge.common.extensions IForgeContainerType create.

Prototype

static <T extends Container> ContainerType<T> create(
            net.minecraftforge.fml.network.IContainerFactory<T> factory) 

Source Link

Usage

From source file:com.teambrmodding.assistedprogression.managers.ContainerManager.java

License:Creative Commons License

@SubscribeEvent
public static void registerContainerTypes(RegistryEvent.Register<ContainerType<?>> event) {
    event.getRegistry().register(IForgeContainerType.create(GrinderContainer::new).setRegistryName("grinder"));
    event.getRegistry().register(IForgeContainerType.create(CrafterContainer::new).setRegistryName("crafter"));
    event.getRegistry()//  w w  w. j a  va  2s .  c  om
            .register(IForgeContainerType.create(TrashBagContainer::new).setRegistryName("trash_bag"));
}