codechicken.core.CCUpdateChecker Java Examples

The following examples show how to use codechicken.core.CCUpdateChecker. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EnderStorageClientProxy.java    From EnderStorage with MIT License 6 votes vote down vote up
@Override
public void init()
{
    if(config.getTag("checkUpdates").getBooleanValue(true))
        CCUpdateChecker.updateCheck("EnderStorage");
    ClientUtils.enhanceSupportersList("EnderStorage");

    super.init();

    PacketCustom.assignHandler(EnderStorageCPH.channel, new EnderStorageCPH());

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(blockEnderChest), new ItemEnderStorageRenderer());

    ClientRegistry.bindTileEntitySpecialRenderer(TileEnderChest.class, new EnderChestRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileEnderTank.class, new EnderTankRenderer());
}
 
Example #2
Source File: TranslocatorClientProxy.java    From Translocators with MIT License 6 votes vote down vote up
public void init()
{
    if(config.getTag("checkUpdates").getBooleanValue(true))
        CCUpdateChecker.updateCheck("Translocator");
    ClientUtils.enhanceSupportersList("Translocator");
    
    super.init();


    ClientRegistry.bindTileEntitySpecialRenderer(TileItemTranslocator.class, new TileTranslocatorRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileLiquidTranslocator.class, new TileTranslocatorRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileCraftingGrid.class, new TileCraftingGridRenderer());
    
    PacketCustom.assignHandler(TranslocatorCPH.channel, new TranslocatorCPH());
    
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(blockTranslocator), new ItemTranslocatorRenderer());

    FMLCommonHandler.instance().bus().register(CraftingGridKeyHandler.instance);
    ClientRegistry.registerKeyBinding(CraftingGridKeyHandler.instance);
}
 
Example #3
Source File: ChunkLoaderClientProxy.java    From ChickenChunks with MIT License 5 votes vote down vote up
@Override
public void init()
{
    if(config.getTag("checkUpdates").getBooleanValue(true))
        CCUpdateChecker.updateCheck("ChickenChunks");
    ClientUtils.enhanceSupportersList("ChickenChunks");
    
    super.init();

    PacketCustom.assignHandler(ChunkLoaderCPH.channel, new ChunkLoaderCPH());
    
    ClientRegistry.bindTileEntitySpecialRenderer(TileChunkLoader.class, new TileChunkLoaderRenderer());
    ClientRegistry.bindTileEntitySpecialRenderer(TileSpotLoader.class, new TileChunkLoaderRenderer());
    RenderingRegistry.registerBlockHandler(new ChunkLoaderSBRH());
}
 
Example #4
Source File: CCCEventHandler.java    From CodeChickenCore with MIT License 5 votes vote down vote up
@SubscribeEvent
public void clientTick(TickEvent.ClientTickEvent event) {
    if(event.phase == Phase.END) {
        CCUpdateChecker.tick();
        renderTime++;
    }
}
 
Example #5
Source File: CodeChickenCoreModContainer.java    From CodeChickenCore with MIT License 5 votes vote down vote up
@Subscribe
public void init(FMLInitializationEvent event) {
    if (event.getSide().isClient()) {
        if (config.getTag("checkUpdates").getBooleanValue(true))
            CCUpdateChecker.updateCheck(getModId());
        FMLCommonHandler.instance().bus().register(new CCCEventHandler());
        MinecraftForge.EVENT_BUS.register(new CCCEventHandler());
    }
}
 
Example #6
Source File: WRCoreClientProxy.java    From WirelessRedstone with MIT License 5 votes vote down vote up
@Override
public void init()
{
    if(SaveManager.config().getTag("checkUpdates").getBooleanValue(true))
        CCUpdateChecker.updateCheck("WR-CBE", WirelessRedstoneCore.class.getAnnotation(Mod.class).version());
    ClientUtils.enhanceSupportersList("WR-CBE|Core");
    
    super.init();

    PacketCustom.assignHandler(channel, new WRCoreCPH());
}