Пример #1
0
  @Override
  public void init(FMLInitializationEvent event) {
    super.init(event);

    ClientRegistry.bindTileEntitySpecialRenderer(
        TileEntityLight.class, new TileEntityLightRenderer());
  }
Пример #2
0
  @Override
  public void postInit(FMLPostInitializationEvent event) {
    super.postInit(event);

    MinecraftForgeClient.registerItemRenderer(Objects.itemLens, new ItemRendererMultiPass());
    MinecraftForgeClient.registerItemRenderer(
        Objects.itemColorConfigurator, new ItemRendererMultiPass());
    MinecraftForgeClient.registerItemRenderer(
        Item.getItemFromBlock(Objects.blockLight), new ItemRendererBlockLight());
    MinecraftForgeClient.registerItemRenderer(
        Item.getItemFromBlock(Objects.blockColoredLamp), new ItemRendererBlockColoredLamp());
  }
Пример #3
0
  @Override
  public void preInit(FMLPreInitializationEvent event) {
    super.preInit(event);

    Objects.blockLight.setLightRenderer(0, new LightRendererFresnel());
    Objects.blockLight.setLightRenderer(1, new LightRendererMap());
    Objects.blockLight.setLightRenderer(2, new LightRendererMapLED());
    Objects.blockLight.setLightRenderer(3, new LightRendererDimmer());
    Objects.blockLight.setLightRenderer(4, new LightRendererRadialLaser());
    Objects.blockLight.setLightRenderer(5, new LightRendererHologram());
    Objects.blockLight.setLightRenderer(6, new LightRendererPositionableRadialLaser());

    MinecraftForge.EVENT_BUS.register(this);

    FMLCommonHandler.instance().bus().register(this); // FIXME: temp
  }