Search in sources :

Example 1 with TrainLinker

use of pl.asie.charset.module.transport.carts.link.TrainLinker in project Charset by CharsetMC.

the class CharsetTransportCarts method preInit.

@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
    CapabilityManager.INSTANCE.register(Linkable.class, Linkable.STORAGE, Linkable::new);
    if (ModCharset.profile.includes(ModuleProfile.INDEV)) {
        linker = new TrainLinker();
        MinecraftForge.EVENT_BUS.register(linker);
        itemLinker = new Item().setCreativeTab(ModCharset.CREATIVE_TAB).setUnlocalizedName("linker").setMaxStackSize(1);
    }
    combiner = new TrackCombiner();
}
Also used : Item(net.minecraft.item.Item) Linkable(pl.asie.charset.module.transport.carts.link.Linkable) TrainLinker(pl.asie.charset.module.transport.carts.link.TrainLinker)

Aggregations

Item (net.minecraft.item.Item)1 Linkable (pl.asie.charset.module.transport.carts.link.Linkable)1 TrainLinker (pl.asie.charset.module.transport.carts.link.TrainLinker)1