示例#1
0
  @Override
  public void registerBlocks() {
    GameRegistry.registerBlock(saltOre, "saltOre");
    GameRegistry.registerBlock(platinumOre, "platinumOre");
    GameRegistry.registerBlock(leadOre, "leadOre");
    GameRegistry.registerBlock(cinnabarOre, "cinnabarOre");
    GameRegistry.registerBlock(carobbiiteOre, "carobiiteOre");

    TickRegistry.registerScheduledTickHandler(new ScheduledTickHandler(), Side.SERVER);
    GameRegistry.registerTileEntity(TileLabBench.class, "LabBench");
  }
示例#2
0
 @Override
 public void registerItems() {
   GameRegistry.registerItem(CompoundMetaItem, CompoundMetaItem.getItemName());
   MinecraftForgeClient.registerItemRenderer(CompoundMetaItem.itemID, new ItemCompoundRenderer());
 }