mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-25 06:17:59 +01:00
20 lines
740 B
Java
20 lines
740 B
Java
package com.minelittlepony.unicopia.container;
|
|
|
|
import net.fabricmc.fabric.api.container.ContainerFactory;
|
|
import net.fabricmc.fabric.api.container.ContainerProviderRegistry;
|
|
import net.minecraft.container.Container;
|
|
import net.minecraft.util.Identifier;
|
|
|
|
public interface UContainers {
|
|
|
|
Identifier BAG_OF_HOLDING = register("bag_of_holding", BagOfHoldingContainer::new);
|
|
Identifier SPELL_BOOK = register("spell_book", SpellBookContainer::new);
|
|
|
|
static Identifier register(String name, ContainerFactory<Container> factory) {
|
|
Identifier id = new Identifier("unicopia", name);
|
|
ContainerProviderRegistry.INSTANCE.registerFactory(BAG_OF_HOLDING, factory);
|
|
return id;
|
|
}
|
|
|
|
static void bootstrap() { }
|
|
}
|