Search in sources :

Example 1 with ItemSlab

use of net.minecraft.item.ItemSlab in project Traverse by ProfessorProspector.

the class TraverseBlocks method addFirTreeStuff.

static void addFirTreeStuff() {
    String fir = "fir";
    FirLSCompound lsCompound = new FirLSCompound();
    register(lsCompound.lsLeaves);
    oreDictNames.put(lsCompound.lsLeaves, "treeLeaves");
    register(lsCompound.lsSapling);
    oreDictNames.put(lsCompound.lsSapling, "treeSapling");
    BlockTraverseWoodLog log = new BlockTraverseWoodLog(fir);
    register(log);
    oreDictNames.put(log, "logWood");
    BlockTraverseWoodPlanks planks = new BlockTraverseWoodPlanks(fir);
    register(planks);
    oreDictNames.put(planks, "plankWood");
    BlockTraverseStairs stairs = new BlockTraverseStairs(planks.getDefaultState(), fir);
    register(stairs);
    oreDictNames.put(stairs, "stairWood");
    BlockTraverseWoodSlab.Half halfSlab = new BlockTraverseWoodSlab.Half(fir);
    register(halfSlab, true);
    oreDictNames.put(halfSlab, "slabWood");
    BlockTraverseWoodSlab.Double doubleSlab = new BlockTraverseWoodSlab.Double(fir, halfSlab);
    register(doubleSlab, (ItemBlock) new ItemSlab(blocks.get(halfSlab.name + "_slab"), halfSlab, doubleSlab).setRegistryName(halfSlab.getRegistryName()));
    register(new BlockTraverseWoodFence(fir));
    register(new BlockTraverseWoodFenceGate(fir));
    BlockTraverseWoodDoor door = new BlockTraverseWoodDoor(fir);
    register(door, new ItemTraverseWoodDoor(door));
}
Also used : ItemSlab(net.minecraft.item.ItemSlab) FirLSCompound(prospector.traverse.blocks.FirLSCompound) ItemTraverseWoodDoor(prospector.traverse.item.ItemTraverseWoodDoor)

Example 2 with ItemSlab

use of net.minecraft.item.ItemSlab in project Traverse by ProfessorProspector.

the class TraverseBlocks method initialize.

public static void initialize() {
    for (Block block : blocks.values()) {
        if (!(block instanceof BlockTraverseWoodSlab || block instanceof BlockTraverseWoodDoor)) {
            registerBlock(block);
        }
        if (block instanceof BlockTraverseWoodDoor) {
            registerBlock(block, new ItemTraverseWoodDoor(block));
        }
    }
    for (BlockTraverseWoodSlab halfSlab : slabs.keySet()) {
        BlockTraverseWoodSlab doubleSlab = slabs.get(halfSlab);
        registerBlockWithoutItem(halfSlab);
        registerBlockWithoutItem(doubleSlab);
        GameRegistry.register(new ItemSlab(blocks.get(halfSlab.name + "_slab"), halfSlab, doubleSlab), halfSlab.getRegistryName());
    }
    for (String name : oreDictNames.keySet()) {
        OreDictionary.registerOre(name, oreDictNames.get(name));
    }
}
Also used : ItemSlab(net.minecraft.item.ItemSlab) Block(net.minecraft.block.Block) ItemBlock(net.minecraft.item.ItemBlock) ItemTraverseWoodDoor(prospector.traverse.item.ItemTraverseWoodDoor)

Example 3 with ItemSlab

use of net.minecraft.item.ItemSlab in project Bewitchment by Um-Mitternacht.

the class ModItems method register.

public static void register(final IForgeRegistry<Item> registry) {
    CropRegistry.getFoods().forEach((crop, item) -> registry.register(item));
    CropRegistry.getSeeds().forEach((crop, item) -> registry.register(item));
    for (final IFluidBlock fluidBlock : Fluids.MOD_FLUID_BLOCKS) {
        registry.register(itemBlock((Block) fluidBlock));
    }
    registry.register(new ItemGem());
    // registry.register(new ItemFume());
    registry.register(new ItemFumes("fume"));
    registry.register(new ItemGemPowder("powders"));
    registry.register(new ItemMod(LibItemName.GEMSTONE_AMALGAM));
    registry.register(new ItemMod(LibItemName.COLD_IRON_INGOT));
    registry.register(new ItemMod(LibItemName.SILVER_POWDER));
    registry.register(new ItemMod(LibItemName.SILVER_INGOT));
    registry.register(new ItemMod(LibItemName.SILVER_NUGGET));
    registry.register(new ItemSpellPage(LibItemName.SPELL_PAGE));
    // Misc
    registry.registerAll(new ItemHoney(), new ItemSalt(), new ItemMod(LibItemName.WAX), new ItemMod(LibItemName.BEE).setMaxDamage(35), new ItemMod(LibItemName.HONEYCOMB), new ItemMod(LibItemName.EMPTY_HONEYCOMB), new ItemMod(LibItemName.MORTAR_AND_PESTLE), new ItemBrewDrink(), new ItemBrewSplash(), new ItemBrewLinger(), new ItemMod(LibItemName.GLASS_JAR), new ItemAthame(), new ItemBoline(), new ItemTaglock(), new ItemMod(LibItemName.NEEDLE_BONE), new ItemMod(LibItemName.WOOL_OF_BAT), new ItemMod(LibItemName.TONGUE_OF_DOG), new ItemMod(LibItemName.WOOD_ASH), new ItemMod(LibItemName.ECTOPLASM), new ItemMod(LibItemName.SPECTRAL_DUST), new ItemMod(LibItemName.SILVER_SCALES), new ItemEyeOfOld(), new ItemMod(LibItemName.ENVENOMED_FANG), new ItemMod(LibItemName.DIMENSIONAL_SAND), new ItemMod(LibItemName.CHROMATIC_QUILL), new ItemMod(LibItemName.CARNIVOROUS_TOOTH), new ItemMod(LibItemName.EYE_OF_ANCIENT), new ItemMod(LibItemName.HOOF), new ItemMod(LibItemName.EQUINE_TAIL), new ItemMod(LibItemName.CATECHU), new ItemMod(LibItemName.OAK_APPLE_GALL), new ItemMod(LibItemName.IRON_GALL_INK), new ItemMod(LibItemName.ABSINTHE_GREEN), new ItemMod(LibItemName.ALBEDO), new ItemHeart(), new ItemShadowBook(), new ItemGrilledWatermelon(), new ItemFilledBowl(), new ItemDustyGrimoire(), new ItemRitualChalk(LibItemName.RITUAL_CHALK), new ItemRemedyTalisman(), new ItemTarots(LibItemName.TAROTS), new ItemBroom(LibItemName.BROOM));
    // Baubles
    // 
    registry.registerAll(new ItemNazar(), new ItemHorseshoe(), new ItemTriskelionAmulet(), new ItemHellishBauble(), new ItemThornyGarment(), new ItemTalisman(BaubleType.HEAD, 35, LibItemName.TALISMAN_AQUAMARINE_CROWN), new ItemTalisman(BaubleType.RING, 18, LibItemName.TALISMAN_ADAMANTINE_STAR_RING), new ItemTalisman(BaubleType.AMULET, 18, LibItemName.TALISMAN_EMERALD_PENDANT), new ItemTalisman(BaubleType.BELT, 30, LibItemName.TALISMAN_RUBY_ORB), new ItemTalisman(BaubleType.CHARM, 18, LibItemName.TALISMAN_WATCHING_EYE), new ItemGirdleOfTheWooded(LibItemName.GIRDLE_OF_THE_WOODED));
    // Equipment
    registry.registerAll(new ItemSilverPickaxe(), new ItemSilverAxe(), new ItemSilverSpade(), new ItemSilverHoe(), new ItemSilverSword(), new ItemSilverArmor(LibItemName.SILVER_HELMET, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.HEAD), new ItemSilverArmor(LibItemName.SILVER_CHESTPLATE, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.CHEST), new ItemSilverArmor(LibItemName.SILVER_LEGGINGS, ModMaterials.ARMOR_SILVER, 2, EntityEquipmentSlot.LEGS), new ItemSilverArmor(LibItemName.SILVER_BOOTS, ModMaterials.ARMOR_SILVER, 1, EntityEquipmentSlot.FEET));
    // Item Blocks
    registry.registerAll(new ItemBlockColor(ModBlocks.candle_medium), new ItemBlockColor(ModBlocks.candle_small), itemBlock(ModBlocks.fake_ice), itemBlock(ModBlocks.fake_ice_fence), itemBlock(ModBlocks.fake_ice_stairs), itemBlock(ModBlocks.embittered_bricks), itemBlock(ModBlocks.scorned_bricks), itemBlock(ModBlocks.scorned_brick_fence), itemBlock(ModBlocks.scorned_brick_stairs), new ItemGemOre(ModBlocks.gem_ore).setCreativeTab(ModCreativeTabs.BLOCKS_CREATIVE_TAB), new ItemSlab(ModBlocks.fake_ice_slab_half, (BlockSlab) ModBlocks.fake_ice_slab_half, (BlockSlab) ModBlocks.fake_ice_slab_double).setRegistryName(ModBlocks.fake_ice_slab_half.getRegistryName()), itemBlock(ModBlocks.silver_block), itemBlock(ModBlocks.silver_ore), itemBlock(ModBlocks.moldavite_block), itemBlock(ModBlocks.coquina), itemBlock(ModBlocks.bloodstone_block), itemBlock(ModBlocks.cauldron), itemBlock(ModBlocks.oven), itemBlock(ModBlocks.apiary), itemBlock(ModBlocks.torchwood), itemBlock(ModBlocks.ember_grass), itemBlock(ModBlocks.raging_grass), itemBlock(ModBlocks.beehive), itemBlock(ModBlocks.tourmaline_block), itemBlock(ModBlocks.malachite_block), itemBlock(ModBlocks.tigers_eye_block), itemBlock(ModBlocks.nuummite_block), itemBlock(ModBlocks.alexandrite_block), itemBlock(ModBlocks.garnet_block), itemBlock(ModBlocks.jasper_block), itemBlock(ModBlocks.amethyst_block), itemBlock(ModBlocks.salt_ore), itemBlock(ModBlocks.nethersteel), itemBlock(ModBlocks.salt_barrier), itemBlock(ModBlocks.log_elder), itemBlock(ModBlocks.log_juniper), itemBlock(ModBlocks.log_yew), itemBlock(ModBlocks.log_cypress), itemBlock(ModBlocks.leaves_elder), itemBlock(ModBlocks.leaves_juniper), itemBlock(ModBlocks.leaves_yew), itemBlock(ModBlocks.leaves_cypress), itemBlock(ModBlocks.planks_elder), itemBlock(ModBlocks.planks_juniper), itemBlock(ModBlocks.planks_yew), itemBlock(ModBlocks.planks_cypress), new ItemBlockSapling(), itemBlock(ModBlocks.moonbell), itemBlock(ModBlocks.witch_altar), itemBlock(ModBlocks.thread_spinner), new ItemBlockBarrel(), itemBlock(ModBlocks.infested_farmland), itemBlock(ModBlocks.crystal_ball), itemBlock(ModBlocks.goblet), itemBlock(ModBlocks.tarot_table));
}
Also used : ItemHoney(com.bewitchment.common.item.food.ItemHoney) ItemSilverArmor(com.bewitchment.common.item.equipment.ItemSilverArmor) ItemSlab(net.minecraft.item.ItemSlab) ItemBrewSplash(com.bewitchment.common.item.magic.brew.ItemBrewSplash) ItemHeart(com.bewitchment.common.item.food.ItemHeart) ItemBlockSapling(com.bewitchment.common.item.block.ItemBlockSapling) ItemBrewDrink(com.bewitchment.common.item.magic.brew.ItemBrewDrink) ItemBrewLinger(com.bewitchment.common.item.magic.brew.ItemBrewLinger) ItemGemOre(com.bewitchment.common.item.block.ItemGemOre) ItemBlockBarrel(com.bewitchment.common.item.block.ItemBlockBarrel) ItemFilledBowl(com.bewitchment.common.item.food.ItemFilledBowl) ItemDustyGrimoire(com.bewitchment.common.item.magic.books.ItemDustyGrimoire) ItemBlockColor(com.bewitchment.common.item.block.ItemBlockColor) ItemGrilledWatermelon(com.bewitchment.common.item.food.ItemGrilledWatermelon) ItemShadowBook(com.bewitchment.common.item.magic.books.ItemShadowBook) IFluidBlock(net.minecraftforge.fluids.IFluidBlock) Block(net.minecraft.block.Block) IFluidBlock(net.minecraftforge.fluids.IFluidBlock) ItemBlock(net.minecraft.item.ItemBlock) ItemEyeOfOld(com.bewitchment.common.item.secrets.ItemEyeOfOld)

Example 4 with ItemSlab

use of net.minecraft.item.ItemSlab in project Gaia-Dimension by Andromander.

the class GDItemsRegister method onRegisterItems.

@SubscribeEvent
public static void onRegisterItems(RegistryEvent.Register<Item> event) {
    ItemRegistryHelper items = new ItemRegistryHelper(event.getRegistry());
    items.register("crystallized_redstone", new GDItem());
    items.register("crystallized_lapis_lazuli", new GDItem());
    items.register("glint_and_gold", new GDFlintAndGold());
    items.register("agate_stick", new GDItem());
    items.register("hot_dust", new GDItem() {

        @Override
        public int getItemBurnTime(ItemStack stack) {
            return 100;
        }
    });
    items.register("goldstone_dust", new GDItem());
    items.register("fine_dust", new GDItem());
    items.register("cloudy_shard", new GDItem());
    items.register("agate_cup", new GDItem());
    items.register("scaynyx_ingot", new GDItem());
    items.register("sweet_muckball", new GDItem());
    items.register("sugar_crystals", new GDItem());
    items.register("sugar_cluster", new GDItem());
    items.register("shiny_bone", new GDItem());
    items.register("fine_thread", new GDItem());
    items.register("twined_thread", new GDItem());
    items.register("pink_essence", new GDItem());
    items.register("pink_goo", new GDItem());
    items.register("gemstone_pouch", new GDGemstonePouch());
    items.register("agate_fabric", new GDItem());
    items.register("sturdy_pebble", new GDSturdyPebble());
    items.register("scaynyx_bucket", new GDScaynyxBucket());
    items.register("pink_geode", new GDItem());
    items.register("blue_geode", new GDItem());
    items.register("green_geode", new GDItem());
    items.register("purple_geode", new GDItem());
    items.register("pink_geode_slice", new GDGeodeSlice(3, 0.5F));
    items.register("blue_geode_slice", new GDGeodeSlice(4, 0.4F));
    items.register("green_geode_slice", new GDGeodeSlice(5, 0.3F));
    items.register("purple_geode_slice", new GDGeodeSlice(6, 0.2F));
    items.register("pink_geode_juice", new GDGeodeJuice(8, 0.7F, JuiceType.JUICE));
    items.register("blue_geode_tea", new GDGeodeJuice(8, 0.7F, JuiceType.TEA));
    items.register("green_geode_ale", new GDGeodeJuice(8, 0.7F, JuiceType.ALE));
    items.register("purple_geode_soda", new GDGeodeJuice(8, 0.7F, JuiceType.SODA));
    items.register("pearly_geode_elixir", new GDGeodeJuice(12, 0.9F, JuiceType.ELIXIR));
    items.register("lurmorus_meat", new GDFood(4, 0.4F, false));
    items.register("lurmorus_steak", new GDFood(9, 0.9F, false));
    items.register("small_tentacle", new GDFood(3, 0.2F, false));
    items.register("small_calamari", new GDFood(6, 0.6F, false));
    items.register("large_tentacle", new GDFood(4, 0.3F, false));
    items.register("large_calamari", new GDFood(8, 0.7F, false));
    items.register("markuzar_mint", new GDFood(2, 0.4F, false));
    items.register("luggeroth_chop", new GDFood(3, 0.3F, false));
    items.register("cooked_luggeroth_chop", new GDFood(8, 0.8F, false));
    items.register("tilipi", new GDTiliFood(5, 0.6F, false));
    items.register("tilibl", new GDTiliFood(5, 0.6F, false));
    items.register("tiligr", new GDTiliFood(7, 0.3F, false));
    items.register("tilipu", new GDTiliFood(7, 0.3F, false));
    items.register("tiliol", new GDTiliFood(5, 0.6F, false));
    items.register("tilimy", new GDTiliFood(7, 0.3F, false));
    items.register("plagued_tiliey", new GDTiliFood(7, 0.3F, true));
    items.register("tiliou", new GDTiliFood(5, 0.6F, false));
    items.register("hematite_powder", new GDGroundGem());
    items.register("pyrite_powder", new GDGroundGem());
    items.register("labradorite_powder", new GDGroundGem());
    items.register("moonstone_powder", new GDGroundGem());
    items.register("cinnabar_powder", new GDGroundGem());
    items.register("red_opal_powder", new GDGroundGem());
    items.register("blue_opal_powder", new GDGroundGem());
    items.register("green_opal_powder", new GDGroundGem());
    items.register("white_opal_grit", new GDGroundGem());
    items.register("sugilite", new GDItem());
    items.register("hematite", new GDItem());
    items.register("pyrite", new GDItem());
    items.register("labradorite", new GDItem());
    items.register("moonstone", new GDItem());
    items.register("cinnabar", new GDItem());
    items.register("red_opal", new GDItem());
    items.register("blue_opal", new GDItem());
    items.register("green_opal", new GDItem());
    items.register("white_opal", new GDItem());
    items.register("ixiolite", new GDItem());
    items.register("proustite", new GDItem());
    items.register("euclase", new GDItem());
    items.register("leucite", new GDItem());
    items.register("carnelian", new GDItem());
    items.register("benitoite", new GDItem());
    items.register("diopside", new GDItem());
    items.register("chalcedony", new GDItem());
    items.register("black_residue", new GDItem());
    items.register("tektite", new GDItem());
    items.register("goldstone_residue", new GDItem());
    items.register("goldstone", new GDItem());
    items.register("aura_residue", new GDItem());
    items.register("aura_cluster", new GDItem());
    items.register("bismuth_residue", new GDItem());
    items.register("bismuth_crystal", new GDItem());
    items.register("agate_sword", new GDGenericSword(TOOL_AGATE));
    items.register("agate_pickaxe", new GDGenericPickaxe(TOOL_AGATE));
    items.register("agate_axe", new GDGenericAxe(TOOL_AGATE, 5F, -3.2F));
    items.register("agate_shovel", new GDGenericShovel(TOOL_AGATE));
    items.register("sugilite_sword", new GDGenericSword(TOOL_SUGILITE));
    items.register("sugilite_pickaxe", new GDGenericPickaxe(TOOL_SUGILITE));
    items.register("sugilite_axe", new GDGenericAxe(TOOL_SUGILITE, 6F, -3.2F));
    items.register("sugilite_shovel", new GDGenericShovel(TOOL_SUGILITE));
    items.register("ixiolite_sword", new GDGenericSword(TOOL_IXIOLITE));
    items.register("ixiolite_pickaxe", new GDGenericPickaxe(TOOL_IXIOLITE));
    items.register("ixiolite_axe", new GDGenericAxe(TOOL_IXIOLITE, 6F, -3.2F));
    items.register("ixiolite_shovel", new GDGenericShovel(TOOL_IXIOLITE));
    items.register("euclase_sword", new GDGenericSword(TOOL_EUCLASE));
    items.register("euclase_pickaxe", new GDGenericPickaxe(TOOL_EUCLASE));
    items.register("euclase_axe", new GDGenericAxe(TOOL_EUCLASE, 6F, -3.2F));
    items.register("euclase_shovel", new GDGenericShovel(TOOL_EUCLASE));
    items.register("carnelian_sword", new GDGenericSword(TOOL_CARNELIAN));
    items.register("carnelian_pickaxe", new GDGenericPickaxe(TOOL_CARNELIAN));
    items.register("carnelian_axe", new GDGenericAxe(TOOL_CARNELIAN, 6F, -3.2F));
    items.register("carnelian_shovel", new GDGenericShovel(TOOL_CARNELIAN));
    items.register("benitoite_sword", new GDGenericSword(TOOL_BENITOITE));
    items.register("benitoite_pickaxe", new GDGenericPickaxe(TOOL_BENITOITE));
    items.register("benitoite_axe", new GDGenericAxe(TOOL_BENITOITE, 6F, -3.2F));
    items.register("benitoite_shovel", new GDGenericShovel(TOOL_BENITOITE));
    items.register("chalcedony_sword", new GDGenericSword(TOOL_CHALCEDONY));
    items.register("chalcedony_pickaxe", new GDGenericPickaxe(TOOL_CHALCEDONY));
    items.register("chalcedony_axe", new GDGenericAxe(TOOL_CHALCEDONY, 6F, -3.2F));
    items.register("chalcedony_shovel", new GDGenericShovel(TOOL_CHALCEDONY));
    items.register("old_bow", new GDBow());
    items.register("agate_arrow", new GDAgateArrow());
    items.register("sugilite_helmet", new GDSugiliteArmor(ARMOR_SUGILITE, HEAD));
    items.register("sugilite_chestplate", new GDSugiliteArmor(ARMOR_SUGILITE, CHEST));
    items.register("sugilite_legs", new GDSugiliteArmor(ARMOR_SUGILITE, LEGS));
    items.register("sugilite_boots", new GDSugiliteArmor(ARMOR_SUGILITE, FEET));
    items.register("proustite_helmet", new GDProustiteArmor(ARMOR_PROUSTITE, HEAD));
    items.register("proustite_chestplate", new GDProustiteArmor(ARMOR_PROUSTITE, CHEST));
    items.register("proustite_legs", new GDProustiteArmor(ARMOR_PROUSTITE, LEGS));
    items.register("proustite_boots", new GDProustiteArmor(ARMOR_PROUSTITE, FEET));
    items.register("leucite_helmet", new GDLeuciteArmor(ARMOR_LEUCITE, HEAD));
    items.register("leucite_chestplate", new GDLeuciteArmor(ARMOR_LEUCITE, CHEST));
    items.register("leucite_legs", new GDLeuciteArmor(ARMOR_LEUCITE, LEGS));
    items.register("leucite_boots", new GDLeuciteArmor(ARMOR_LEUCITE, FEET));
    items.register("carnelian_helmet", new GDCarnelianArmor(ARMOR_CARNELIAN, HEAD));
    items.register("carnelian_chestplate", new GDCarnelianArmor(ARMOR_CARNELIAN, CHEST));
    items.register("carnelian_legs", new GDCarnelianArmor(ARMOR_CARNELIAN, LEGS));
    items.register("carnelian_boots", new GDCarnelianArmor(ARMOR_CARNELIAN, FEET));
    items.register("diopside_helmet", new GDDiopsideArmor(ARMOR_DIOPSIDE, HEAD));
    items.register("diopside_chestplate", new GDDiopsideArmor(ARMOR_DIOPSIDE, CHEST));
    items.register("diopside_legs", new GDDiopsideArmor(ARMOR_DIOPSIDE, LEGS));
    items.register("diopside_boots", new GDDiopsideArmor(ARMOR_DIOPSIDE, FEET));
    items.register("chalcedony_helmet", new GDChalcedonyArmor(ARMOR_CHALCEDONY, HEAD));
    items.register("chalcedony_chestplate", new GDChalcedonyArmor(ARMOR_CHALCEDONY, CHEST));
    items.register("chalcedony_legs", new GDChalcedonyArmor(ARMOR_CHALCEDONY, LEGS));
    items.register("chalcedony_boots", new GDChalcedonyArmor(ARMOR_CHALCEDONY, FEET));
    items.register("malachite_guard_headgear", new GDMalachiteGuardArmor(ARMOR_MALACHITE, HEAD));
    items.register("malachite_guard_brace", new GDMalachiteGuardArmor(ARMOR_MALACHITE, CHEST));
    items.register("malachite_guard_gear", new GDMalachiteGuardArmor(ARMOR_MALACHITE, LEGS));
    items.register("malachite_guard_boots", new GDMalachiteGuardArmor(ARMOR_MALACHITE, FEET));
    items.register("apex_predator_hood", new GDApexPredatorArmor(ARMOR_TIGER_EYE, HEAD));
    items.register("apex_predator_jacket", new GDApexPredatorArmor(ARMOR_TIGER_EYE, CHEST));
    items.register("apex_predator_trousers", new GDApexPredatorArmor(ARMOR_TIGER_EYE, LEGS));
    items.register("apex_predator_boots", new GDApexPredatorArmor(ARMOR_TIGER_EYE, FEET));
    items.register("spinel_princess_cowl", new GDSpinelPrincessArmor(ARMOR_SPINEL, HEAD));
    items.register("spinel_princess_cloak", new GDSpinelPrincessArmor(ARMOR_SPINEL, CHEST));
    items.register("spinel_princess_dress", new GDSpinelPrincessArmor(ARMOR_SPINEL, LEGS));
    items.register("spinel_princess_heels", new GDSpinelPrincessArmor(ARMOR_SPINEL, FEET));
    items.register("zircon_prince_crown", new GDZirconPrinceArmor(ARMOR_ZIRCON, HEAD));
    items.register("zircon_prince_chestpiece", new GDZirconPrinceArmor(ARMOR_ZIRCON, CHEST));
    items.register("zircon_prince_gear", new GDZirconPrinceArmor(ARMOR_ZIRCON, LEGS));
    items.register("zircon_prince_boots", new GDZirconPrinceArmor(ARMOR_ZIRCON, FEET));
    items.register("corrupt_warrior_helm", new GDCorruptWarriorArmor(ARMOR_CORRUPT, HEAD));
    items.register("corrupt_warrior_guard", new GDCorruptWarriorArmor(ARMOR_CORRUPT, CHEST));
    items.register("corrupt_warrior_greaves", new GDCorruptWarriorArmor(ARMOR_CORRUPT, LEGS));
    items.register("corrupt_warrior_boots", new GDCorruptWarriorArmor(ARMOR_CORRUPT, FEET));
    items.register("gaia_duchess_helm", new GDGaiaDuchessArmor(ARMOR_BIXBITE, HEAD));
    items.register("gaia_duchess_guard", new GDGaiaDuchessArmor(ARMOR_BIXBITE, CHEST));
    items.register("gaia_duchess_greaves", new GDGaiaDuchessArmor(ARMOR_BIXBITE, LEGS));
    items.register("gaia_duchess_boots", new GDGaiaDuchessArmor(ARMOR_BIXBITE, FEET));
    items.register("gaia_baron_mask", new GDGaiaBaronArmor(ARMOR_TSAVORITE, HEAD));
    items.register("gaia_baron_tuxedo", new GDGaiaBaronArmor(ARMOR_TSAVORITE, CHEST));
    items.register("gaia_baron_pants", new GDGaiaBaronArmor(ARMOR_TSAVORITE, LEGS));
    items.register("gaia_baron_shoes", new GDGaiaBaronArmor(ARMOR_TSAVORITE, FEET));
    items.register("gaia_duke_helm", new GDGaiaDukeArmor(ARMOR_LARVIKITE, HEAD));
    items.register("gaia_duke_guard", new GDGaiaDukeArmor(ARMOR_LARVIKITE, CHEST));
    items.register("gaia_duke_greaves", new GDGaiaDukeArmor(ARMOR_LARVIKITE, LEGS));
    items.register("gaia_duke_boots", new GDGaiaDukeArmor(ARMOR_LARVIKITE, FEET));
    items.register("gaia_champion_helm", new GDGaiaChampArmor(ARMOR_GAIA_CHAMP, HEAD));
    items.register("gaia_champion_guard", new GDGaiaChampArmor(ARMOR_GAIA_CHAMP, CHEST));
    items.register("gaia_champion_greaves", new GDGaiaChampArmor(ARMOR_GAIA_CHAMP, LEGS));
    items.register("gaia_champion_boots", new GDGaiaChampArmor(ARMOR_GAIA_CHAMP, FEET));
    items.register("malachite_guard_baton", new GDMalachiteGuardSword(TOOL_MALACHITE));
    items.register("apex_predator_mace", new GDApexPredatorSword(TOOL_TIGER_EYE));
    items.register("spinel_princess_flamberge", new GDSpinelPrincessSword(TOOL_SPINEL));
    items.register("zircon_prince_razor", new GDZirconPrinceSword(TOOL_ZIRCON));
    items.register("corrupt_warrior_sword", new GDCorruptWarriorSword(TOOL_CORRUPT));
    items.register("gaia_duchess_khopesh", new GDGaiaDuchessSword(TOOL_BIXBITE));
    items.register("gaia_baron_dagger", new GDGaiaBaronSword(TOOL_TSAVORITE));
    items.register("gaia_duke_blade", new GDGaiaDukeSword(TOOL_LARVIKITE));
    items.register("gaia_champion_sword", new GDGaiaChampSword(TOOL_GAIA_CHAMP));
    /*
         * Blocks
         */
    // Utility Blocks
    items.registerBlock(GDBlocks.gaia_portal);
    items.registerBlock(GDBlocks.keystone_block);
    items.registerBlock(GDBlocks.gold_fire);
    items.registerBlock(GDBlocks.pyrite_torch);
    items.registerBlock(GDBlocks.agate_crafting_table);
    items.registerBlock(GDBlocks.crude_storage_crate);
    items.registerBlock(GDBlocks.mega_storage_crate);
    items.registerBlock(GDBlocks.gaia_stone_furnace_idle);
    // Fallback
    items.registerBlock(GDBlocks.gaia_stone_furnace_lit);
    items.registerBlock(GDBlocks.restructurer_idle);
    // Fallback
    items.registerBlock(GDBlocks.restructurer_lit);
    items.registerBlock(GDBlocks.purifier_idle);
    // Fallback
    items.registerBlock(GDBlocks.purifier_lit);
    // Natural Blocks
    items.registerBlock(GDBlocks.heavy_soil);
    items.registerBlock(GDBlocks.corrupt_soil);
    items.registerBlock(GDBlocks.boggy_soil);
    items.registerBlock(GDBlocks.light_soil);
    items.registerBlock(GDBlocks.glitter_grass);
    items.registerBlock(GDBlocks.corrupt_grass);
    items.registerBlock(GDBlocks.murky_grass);
    items.registerBlock(GDBlocks.soft_grass);
    items.registerBlock(GDBlocks.frail_glitter_block);
    items.registerBlock(GDBlocks.thick_glitter_block);
    items.registerBlock(GDBlocks.gummy_glitter_block);
    items.registerBlock(GDBlocks.pink_sludge_block);
    // Plants
    items.registerBlock(GDBlocks.crystal_growth);
    items.registerBlock(GDBlocks.crystal_growth_red);
    items.registerBlock(GDBlocks.crystal_growth_black);
    items.registerBlock(GDBlocks.crystal_growth_seared);
    items.registerBlock(GDBlocks.crystal_growth_mutant);
    items.registerBlock(GDBlocks.crystal_growth_aura);
    items.registerBlock(GDBlocks.thiscus);
    items.registerBlock(GDBlocks.ouzium);
    items.registerBlock(GDBlocks.agathum);
    items.registerBlock(GDBlocks.varloom);
    items.registerBlock(GDBlocks.corrupt_varloom);
    items.registerBlock(GDBlocks.missingno_plant);
    items.registerBlock(GDBlocks.spotted_kersei);
    items.registerBlock(GDBlocks.thorny_wiltha);
    items.registerBlock(GDBlocks.roofed_agaric);
    items.registerBlock(GDBlocks.bulbous_hobina);
    items.registerBlock(GDBlocks.stickly_cupsir);
    items.registerBlock(GDBlocks.mystical_murgni);
    items.registerBlock(GDBlocks.corrupted_gaia_eye);
    // items.registerBlock(GDBlocks.sacred_gaia_eye);
    items.registerBlock(GDBlocks.elder_imklia);
    items.registerBlock(GDBlocks.gold_orb_tucher);
    items.registerBlock(GDBlocks.missingno_fungus);
    items.registerBlock(GDBlocks.pink_agate_sapling);
    items.registerBlock(GDBlocks.blue_agate_sapling);
    items.registerBlock(GDBlocks.green_agate_sapling);
    items.registerBlock(GDBlocks.purple_agate_sapling);
    items.registerBlock(GDBlocks.fossilized_sapling);
    items.registerBlock(GDBlocks.corrupted_sapling);
    items.registerBlock(GDBlocks.burnt_sapling);
    items.registerBlock(GDBlocks.burning_sapling);
    items.registerBlock(GDBlocks.aura_sapling);
    items.registerBlock(GDBlocks.pink_agate_leaves);
    items.registerBlock(GDBlocks.blue_agate_leaves);
    items.registerBlock(GDBlocks.green_agate_leaves);
    items.registerBlock(GDBlocks.purple_agate_leaves);
    items.registerBlock(GDBlocks.fossilized_leaves);
    items.registerBlock(GDBlocks.corrupted_leaves);
    items.registerBlock(GDBlocks.burnt_leaves);
    items.registerBlock(GDBlocks.burning_leaves);
    items.registerBlock(GDBlocks.aura_leaves);
    items.registerBlock(GDBlocks.pink_agate_log);
    items.registerBlock(GDBlocks.blue_agate_log);
    items.registerBlock(GDBlocks.green_agate_log);
    items.registerBlock(GDBlocks.purple_agate_log);
    items.registerBlock(GDBlocks.fossilized_log);
    items.registerBlock(GDBlocks.corrupted_log);
    items.registerBlock(GDBlocks.burnt_log);
    items.registerBlock(GDBlocks.burning_log);
    items.registerBlock(GDBlocks.aura_log);
    items.registerBlock(GDBlocks.salt);
    items.registerBlock(GDBlocks.saltstone);
    items.registerBlock(GDBlocks.pebbles);
    items.registerBlock(GDBlocks.gaia_stone);
    items.registerBlock(GDBlocks.gaia_cobblestone);
    items.registerBlock(GDBlocks.wasteland_stone);
    items.registerBlock(GDBlocks.static_stone);
    items.registerBlock(GDBlocks.charged_mineral);
    items.registerBlock(GDBlocks.volcanic_rock);
    items.registerBlock(GDBlocks.searing_rock);
    items.registerBlock(GDBlocks.primal_mass);
    items.registerBlock(GDBlocks.impure_rock);
    items.registerBlock(GDBlocks.active_rock);
    items.registerBlock(GDBlocks.impure_sludge);
    items.registerBlock(GDBlocks.geyser_block);
    items.registerBlock(GDBlocks.sparkling_rock);
    items.registerBlock(GDBlocks.aura_shoot);
    // Planks
    items.registerBlock(GDBlocks.pink_agate_planks);
    items.registerBlock(GDBlocks.blue_agate_planks);
    items.registerBlock(GDBlocks.green_agate_planks);
    items.registerBlock(GDBlocks.purple_agate_planks);
    items.registerBlock(GDBlocks.fossilized_planks);
    items.registerBlock(GDBlocks.corrupted_planks);
    items.registerBlock(GDBlocks.burnt_planks);
    items.registerBlock(GDBlocks.burning_planks);
    items.registerBlock(GDBlocks.aura_planks);
    items.register(new ItemSlab(GDBlocks.pink_agate_plank_slab, GDBlocks.pink_agate_plank_slab, GDBlocks.double_pink_agate_plank_slab));
    items.register(new ItemSlab(GDBlocks.blue_agate_plank_slab, GDBlocks.blue_agate_plank_slab, GDBlocks.double_blue_agate_plank_slab));
    items.register(new ItemSlab(GDBlocks.green_agate_plank_slab, GDBlocks.green_agate_plank_slab, GDBlocks.double_green_agate_plank_slab));
    items.register(new ItemSlab(GDBlocks.purple_agate_plank_slab, GDBlocks.purple_agate_plank_slab, GDBlocks.double_purple_agate_plank_slab));
    items.register(new ItemSlab(GDBlocks.fossilized_plank_slab, GDBlocks.fossilized_plank_slab, GDBlocks.double_fossilized_plank_slab));
    items.register(new ItemSlab(GDBlocks.corrupted_plank_slab, GDBlocks.corrupted_plank_slab, GDBlocks.double_corrupted_plank_slab));
    items.register(new ItemSlab(GDBlocks.burnt_plank_slab, GDBlocks.burnt_plank_slab, GDBlocks.double_burnt_plank_slab));
    items.register(new ItemSlab(GDBlocks.burning_plank_slab, GDBlocks.burning_plank_slab, GDBlocks.double_burning_plank_slab));
    items.register(new ItemSlab(GDBlocks.aura_plank_slab, GDBlocks.aura_plank_slab, GDBlocks.double_aura_plank_slab));
    items.registerBlock(GDBlocks.pink_agate_plank_stairs);
    items.registerBlock(GDBlocks.blue_agate_plank_stairs);
    items.registerBlock(GDBlocks.green_agate_plank_stairs);
    items.registerBlock(GDBlocks.purple_agate_plank_stairs);
    items.registerBlock(GDBlocks.fossilized_plank_stairs);
    items.registerBlock(GDBlocks.corrupted_plank_stairs);
    items.registerBlock(GDBlocks.burnt_plank_stairs);
    items.registerBlock(GDBlocks.burning_plank_stairs);
    items.registerBlock(GDBlocks.aura_plank_stairs);
    items.registerBlock(GDBlocks.cloudy_glass);
    items.registerBlock(GDBlocks.foggy_glass);
    items.registerBlock(GDBlocks.gaia_stone_bricks);
    items.registerBlock(GDBlocks.cracked_gaia_stone_bricks);
    items.registerBlock(GDBlocks.crusted_gaia_stone_bricks);
    items.registerBlock(GDBlocks.reinforced_bricks);
    items.registerBlock(GDBlocks.malachite_bricks);
    items.registerBlock(GDBlocks.malachite_cracked_bricks);
    items.registerBlock(GDBlocks.malachite_crusted_bricks);
    items.registerBlock(GDBlocks.malachite_floor_tiles);
    items.registerBlock(GDBlocks.malachite_chisel_bricks);
    items.registerBlock(GDBlocks.malachite_pulsing_bricks);
    items.registerBlock(GDBlocks.malachite_pulsing_tiles);
    items.registerBlock(GDBlocks.malachite_pulsing_chisel);
    items.register(new ItemSlab(GDBlocks.malachite_brick_slab, GDBlocks.malachite_brick_slab, GDBlocks.double_malachite_brick_slab));
    items.register(new ItemSlab(GDBlocks.malachite_floor_slab, GDBlocks.malachite_floor_slab, GDBlocks.double_malachite_floor_slab));
    items.registerBlock(GDBlocks.malachite_pillar);
    items.registerBlock(GDBlocks.malachite_brick_stairs);
    items.registerBlock(GDBlocks.malachite_chisel_stairs);
    items.registerBlock(GDBlocks.malachite_pulsing_brick_stairs);
    items.registerBlock(GDBlocks.malachite_pillar_stairs);
    items.registerBlock(GDBlocks.malachite_floor_stairs);
    items.registerBlock(GDBlocks.malachite_pulsing_floor_stairs);
    items.registerBlock(GDBlocks.malachite_pulsing_chisel_stairs);
    items.registerBlock(GDBlocks.bolstered_bricks);
    items.registerBlock(GDBlocks.opal_block_red);
    items.registerBlock(GDBlocks.opal_block_blue);
    items.registerBlock(GDBlocks.opal_block_green);
    items.registerBlock(GDBlocks.opal_block_white);
    items.registerBlock(GDBlocks.sugilite_block);
    items.registerBlock(GDBlocks.hematite_block);
    items.registerBlock(GDBlocks.labradorite_block);
    items.registerBlock(GDBlocks.pyrite_block);
    items.registerBlock(GDBlocks.moonstone_block);
    items.registerBlock(GDBlocks.cinnabar_block);
    items.registerBlock(GDBlocks.tektite_block);
    items.registerBlock(GDBlocks.goldstone_block);
    items.registerBlock(GDBlocks.aura_block);
    items.registerBlock(GDBlocks.bismuth_block);
    items.registerBlock(GDBlocks.ixiolite_block);
    items.registerBlock(GDBlocks.proustite_block);
    items.registerBlock(GDBlocks.euclase_block);
    items.registerBlock(GDBlocks.leucite_block);
    items.registerBlock(GDBlocks.carnelian_block);
    items.registerBlock(GDBlocks.benitoite_block);
    items.registerBlock(GDBlocks.diopside_block);
    items.registerBlock(GDBlocks.chalcedony_block);
    items.registerBlock(GDBlocks.sugilite_ore);
    items.registerBlock(GDBlocks.hematite_ore);
    items.registerBlock(GDBlocks.pyrite_ore);
    items.registerBlock(GDBlocks.opal_ore_red);
    items.registerBlock(GDBlocks.opal_ore_blue);
    items.registerBlock(GDBlocks.opal_ore_green);
    items.registerBlock(GDBlocks.opal_ore_white);
    items.registerBlock(GDBlocks.labradorite_ore);
    items.registerBlock(GDBlocks.moonstone_ore);
    items.registerBlock(GDBlocks.cinnabar_ore);
    items.registerBlock(GDBlocks.speckled_rock);
    items.registerBlock(GDBlocks.coarse_rock);
    items.registerBlock(GDBlocks.precious_rock);
    /*
         * Buckets of Fluids
         */
    mineral_water_bucket_item = FluidUtil.getFilledBucket(new FluidStack(GDFluids.mineralWater, Fluid.BUCKET_VOLUME));
    superhot_magma_bucket_item = FluidUtil.getFilledBucket(new FluidStack(GDFluids.superhotMagma, Fluid.BUCKET_VOLUME));
    sweet_muck_bucket_item = FluidUtil.getFilledBucket(new FluidStack(GDFluids.sweetMuck, Fluid.BUCKET_VOLUME));
    liquid_bismuth_bucket_item = FluidUtil.getFilledBucket(new FluidStack(GDFluids.liquidBismuth, Fluid.BUCKET_VOLUME));
    liquid_aura_bucket_item = FluidUtil.getFilledBucket(new FluidStack(GDFluids.liquidAura, Fluid.BUCKET_VOLUME));
}
Also used : ItemSlab(net.minecraft.item.ItemSlab) FluidStack(net.minecraftforge.fluids.FluidStack) ItemStack(net.minecraft.item.ItemStack) GDGeodeJuice(androsa.gaiadimension.item.GDGeodeJuice) SubscribeEvent(net.minecraftforge.fml.common.eventhandler.SubscribeEvent)

Example 5 with ItemSlab

use of net.minecraft.item.ItemSlab in project Traverse by ProfessorProspector.

the class TraverseBlocks method addStone.

static void addStone(String name, boolean hasBricks, boolean hasSlab, boolean hasCobblestone) {
    String cobbleName = name + "_cobblestone";
    BlockTraverse stone;
    if (hasCobblestone)
        stone = new BlockTraverse(name, Material.ROCK, SoundType.STONE, new ResourceLocation("traverse", cobbleName));
    else
        stone = new BlockTraverse(name, Material.ROCK, SoundType.STONE);
    register(stone);
    oreDictNames.put(stone, "stone");
    if (hasBricks) {
        BlockTraverse bricks = new BlockTraverse(name + "_bricks", Material.ROCK, SoundType.STONE);
        register(bricks);
        register(new BlockTraverseStairs(bricks.getDefaultState(), name + "_bricks"));
        // BlockTraverse cracked_bricks = new BlockTraverse(name + "_bricks_cracked", Material.ROCK, SoundType.STONE);
        // register(cracked_bricks);
        BlockTraverseSlab.Half halfSlab = new BlockTraverseSlab.Half(name + "_bricks", Material.ROCK, SoundType.STONE);
        register(halfSlab, true);
        BlockTraverseSlab.Double doubleSlab = new BlockTraverseSlab.Double(name + "_bricks", Material.ROCK, SoundType.STONE, halfSlab);
        register(doubleSlab, (ItemBlock) new ItemSlab(blocks.get(halfSlab.name + "_slab"), halfSlab, doubleSlab).setRegistryName(halfSlab.getRegistryName()));
    }
    if (hasSlab) {
        if (hasBricks) {
            register(new BlockTraverse(name + "_bricks_chiseled", Material.ROCK, SoundType.STONE));
        }
        BlockTraverseSlab.Half halfSlab = new BlockTraverseSlab.Half(name, Material.ROCK, SoundType.STONE);
        register(halfSlab, true);
        BlockTraverseSlab.Double doubleSlab = new BlockTraverseSlab.Double(name, Material.ROCK, SoundType.STONE, halfSlab);
        register(doubleSlab, (ItemBlock) new ItemSlab(blocks.get(halfSlab.name + "_slab"), halfSlab, doubleSlab).setRegistryName(halfSlab.getRegistryName()));
    }
    if (hasCobblestone) {
        BlockTraverse cobblestone = new BlockTraverse(cobbleName, Material.ROCK, SoundType.STONE);
        register(cobblestone);
        oreDictNames.put(cobblestone, "cobblestone");
        register(new BlockTraverseStairs(cobblestone.getDefaultState(), cobbleName));
        BlockTraverseSlab.Half halfSlab = new BlockTraverseSlab.Half(cobbleName, Material.ROCK, SoundType.STONE);
        register(halfSlab, true);
        BlockTraverseSlab.Double doubleSlab = new BlockTraverseSlab.Double(cobbleName, Material.ROCK, SoundType.STONE, halfSlab);
        register(doubleSlab, (ItemBlock) new ItemSlab(blocks.get(halfSlab.name + "_slab"), halfSlab, doubleSlab).setRegistryName(halfSlab.getRegistryName()));
        register(new BlockTraverseWall(cobblestone, cobbleName));
    } else {
        register(new BlockTraverse(name, Material.ROCK, SoundType.STONE));
    }
}
Also used : ItemSlab(net.minecraft.item.ItemSlab) ResourceLocation(net.minecraft.util.ResourceLocation)

Aggregations

ItemSlab (net.minecraft.item.ItemSlab)5 Block (net.minecraft.block.Block)2 ItemBlock (net.minecraft.item.ItemBlock)2 ItemTraverseWoodDoor (prospector.traverse.item.ItemTraverseWoodDoor)2 GDGeodeJuice (androsa.gaiadimension.item.GDGeodeJuice)1 ItemBlockBarrel (com.bewitchment.common.item.block.ItemBlockBarrel)1 ItemBlockColor (com.bewitchment.common.item.block.ItemBlockColor)1 ItemBlockSapling (com.bewitchment.common.item.block.ItemBlockSapling)1 ItemGemOre (com.bewitchment.common.item.block.ItemGemOre)1 ItemSilverArmor (com.bewitchment.common.item.equipment.ItemSilverArmor)1 ItemFilledBowl (com.bewitchment.common.item.food.ItemFilledBowl)1 ItemGrilledWatermelon (com.bewitchment.common.item.food.ItemGrilledWatermelon)1 ItemHeart (com.bewitchment.common.item.food.ItemHeart)1 ItemHoney (com.bewitchment.common.item.food.ItemHoney)1 ItemDustyGrimoire (com.bewitchment.common.item.magic.books.ItemDustyGrimoire)1 ItemShadowBook (com.bewitchment.common.item.magic.books.ItemShadowBook)1 ItemBrewDrink (com.bewitchment.common.item.magic.brew.ItemBrewDrink)1 ItemBrewLinger (com.bewitchment.common.item.magic.brew.ItemBrewLinger)1 ItemBrewSplash (com.bewitchment.common.item.magic.brew.ItemBrewSplash)1 ItemEyeOfOld (com.bewitchment.common.item.secrets.ItemEyeOfOld)1