use of org.cubeengine.libcube.service.config.ItemStackConverter in project modules-extra by CubeEngine.
the class Backpack method onEnable.
@Listener
public void onEnable(GamePreInitializationEvent event) {
this.modulePath = mm.getPathFor(Backpack.class);
reflector.getCodecManager().getCodec(NBTCodec.class).getConverterManager().registerConverter(new ItemStackConverter(), ItemStack.class);
manager = new BackpackManager(this, reflector, i18n);
cm.getProviders().register(this, new BackpackCompleter(manager));
cm.addCommand(new BackpackCommands(this, manager, i18n, cm));
em.registerListener(Backpack.class, manager);
}
Aggregations