@SideOnly(Side.CLIENT)
 private static void registerTexture(TieredOres t, WandCap cap) {
   cap.setTexture(
       DirectResourceManager.getResource(
           "Reika/ChromatiCraft/Textures/Wands/cap_"
               + t.name().toLowerCase(Locale.ENGLISH)
               + ".png"));
 }
Esempio n. 2
0
  public static void abracadabra() {
    ULTRA_DEATH =
        new Aspect(
            "terminus",
            0xb90000,
            new Aspect[] {Aspect.GREED, Aspect.ELDRITCH},
            new ResourceLocation("avaritia", "textures/misc/terminus.png"),
            771);

    LudicrousItems.akashic_record = new ItemAkashicRecord();
    GameRegistry.registerItem(LudicrousItems.akashic_record, "Akashic_Record");

    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.resource, 1, 1),
        new AspectList().add(ULTRA_DEATH, 1).add(Aspect.ENERGY, 8).add(Aspect.CRYSTAL, 32));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.resource, 1, 4),
        new AspectList().add(ULTRA_DEATH, 2).add(Aspect.METAL, 12).add(Aspect.ENERGY, 12));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.resource, 1, 5),
        new AspectList().add(ULTRA_DEATH, 5).add(Aspect.EXCHANGE, 12));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.resource, 1, 6),
        new AspectList().add(ULTRA_DEATH, 16).add(Aspect.ELDRITCH, 64));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousBlocks.neutron_collector, 1, OreDictionary.WILDCARD_VALUE),
        new AspectList()
            .add(ULTRA_DEATH, 5)
            .add(Aspect.METAL, 64)
            .add(Aspect.ENERGY, 64)
            .add(Aspect.MECHANISM, 64));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 0),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 1),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100).add(Aspect.GREED, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 2),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.SENSES, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 3),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.MECHANISM, 100).add(Aspect.ENERGY, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 4),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.CRYSTAL, 100).add(Aspect.ORDER, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 5),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 6),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 7),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.singularity, 1, 8),
        new AspectList().add(ULTRA_DEATH, 3).add(Aspect.METAL, 100));
    ThaumcraftApi.registerObjectTag(
        new ItemStack(LudicrousItems.infinity_sword),
        new AspectList()
            .add(ULTRA_DEATH, 60)
            .add(Aspect.WEAPON, 999)
            .add(Aspect.DEATH, 999)
            .add(Aspect.ELDRITCH, 100));
    ThaumcraftApi.registerComplexObjectTag(
        new ItemStack(LudicrousItems.skull_sword),
        new AspectList()
            .add(ULTRA_DEATH, 1)
            .add(Aspect.FIRE, 2)
            .add(Aspect.CRYSTAL, 16)
            .add(Aspect.DEATH, 4));

    WAND_ROD_NEUTRONIUM =
        new WandRod(
            "infinity",
            9999999,
            new ItemStack(LudicrousBlocks.resource_block, 1, 0),
            9999,
            new CheatyWandUpdate(),
            new ResourceLocation("avaritia", "textures/models/wand_rod_neutronium.png"));
    WAND_ROD_NEUTRONIUM.setGlowing(true);
    WAND_CAP_CRYSTAL = new WandCap("matrix", 0.0F, new ItemStack(Blocks.command_block), 1000);
    WAND_CAP_CRYSTAL.setTexture(
        new ResourceLocation("avaritia", "textures/models/wand_cap_crystal.png"));

    ItemStack wand = new ItemStack(ConfigItems.itemWandCasting, 1, 9000);
    ((ItemWandCasting) ConfigItems.itemWandCasting).setRod(wand, WAND_ROD_NEUTRONIUM);
    ((ItemWandCasting) ConfigItems.itemWandCasting).setCap(wand, WAND_CAP_CRYSTAL);

    ExtremeCraftingManager.getInstance()
        .addRecipe(
            wand,
            "      C  ",
            "     CIC ",
            "     NIIC",
            "    NINC ",
            "   NXN   ",
            " CNIN    ",
            "CIIN     ",
            " CIC     ",
            "  C      ",
            'I',
            new ItemStack(LudicrousItems.resource, 1, 6),
            'C',
            new ItemStack(LudicrousItems.resource, 1, 1),
            'N',
            new ItemStack(LudicrousItems.resource, 1, 4),
            'X',
            new ItemStack(LudicrousBlocks.resource_block, 1, 1));

    if (Loader.isModLoaded("ThaumicTinkerer")) {
      try {
        boolean kami =
            Class.forName("thaumic.tinkerer.common.core.handler.ConfigHandler")
                .getField("enableKami")
                .getBoolean(null);
        if (kami) {
          Item kamiResource = Compat.getItem("ThaumicTinkerer", "kamiResource");
          Grinder.catalyst.getInput().add(new ItemStack(kamiResource, 1, 2));
        }
      } catch (Exception e) {
        Lumberjack.log(
            Level.INFO, e, "Avaritia couldn't find the last research it needs to unlock Ichor.");
      }
    }
  }