Undo removal of compat blocks

This commit is contained in:
tterrag1098 committed 2015-08-04 00:08:26 -04:00
1 parent acdf5290f9
commit ab3bd2ad9a
2 files changed
+349 -35

No files matched your search

@@ -1,23 +1,7 @@
package com.cricketcraft.chisel;
import static com.cricketcraft.chisel.init.ChiselBlocks.andesite;
import static com.cricketcraft.chisel.init.ChiselBlocks.diorite;
import static com.cricketcraft.chisel.init.ChiselBlocks.granite;
import static com.cricketcraft.chisel.init.ChiselBlocks.jackolantern;
import static com.cricketcraft.chisel.init.ChiselBlocks.planks;
import static com.cricketcraft.chisel.init.ChiselBlocks.pumpkin;
import static com.cricketcraft.chisel.init.ChiselBlocks.stainedGlass;
import static com.cricketcraft.chisel.init.ChiselBlocks.stainedGlassPane;
import static com.cricketcraft.chisel.init.ChiselBlocks.torches;
import static com.cricketcraft.chisel.utils.General.featureColors;
import static com.cricketcraft.chisel.utils.General.sGNames;
import java.util.List;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.cricketcraft.chisel.client.render.*;
import com.cricketcraft.chisel.item.chisel.ItemChisel;
import com.cricketcraft.ctmlib.ISubmapManager;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
@@ -27,13 +11,25 @@ import net.minecraft.item.ItemDye;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import com.cricketcraft.chisel.api.carving.CarvingUtils.SimpleCarvingGroup;
import com.cricketcraft.chisel.api.carving.ICarvingVariation;
import com.cricketcraft.chisel.api.carving.IVariationInfo;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.cricketcraft.chisel.block.*;
import com.cricketcraft.chisel.carving.Carving;
import com.cricketcraft.chisel.client.render.SubmapManagerAntiblock;
import com.cricketcraft.chisel.client.render.SubmapManagerCarpetFloor;
import com.cricketcraft.chisel.client.render.SubmapManagerCombinedCTM;
import com.cricketcraft.chisel.client.render.SubmapManagerFakeController;
import com.cricketcraft.chisel.client.render.SubmapManagerLeaves;
import com.cricketcraft.chisel.client.render.SubmapManagerSlab;
import com.cricketcraft.chisel.client.render.SubmapManagerVoidstone;
import com.cricketcraft.chisel.compat.fmp.ItemBlockChiselTorchPart;
import com.cricketcraft.chisel.config.Configurations;
import com.cricketcraft.chisel.entity.EntityBallOMoss;
@@ -42,26 +38,53 @@ import com.cricketcraft.chisel.entity.EntitySmashingRock;
import com.cricketcraft.chisel.init.ChiselBlocks;
import com.cricketcraft.chisel.init.ChiselItems;
import com.cricketcraft.chisel.init.ChiselTabs;
import com.cricketcraft.chisel.item.*;
import com.cricketcraft.chisel.item.ItemBallOMoss;
import com.cricketcraft.chisel.item.ItemBlockPresent;
import com.cricketcraft.chisel.item.ItemCarvable;
import com.cricketcraft.chisel.item.ItemCarvablePumpkin;
import com.cricketcraft.chisel.item.ItemCarvableSlab;
import com.cricketcraft.chisel.item.ItemCloudInABottle;
import com.cricketcraft.chisel.item.ItemSmashingRock;
import com.cricketcraft.chisel.item.ItemUpgrade;
import com.cricketcraft.chisel.item.chisel.ItemChisel;
import com.google.common.collect.Lists;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;
import static com.cricketcraft.chisel.init.ChiselBlocks.*;
import static com.cricketcraft.chisel.utils.General.*;
public enum Features {
AE_CERTUS_QUARTZ("appliedenergistics2") {
@Override
void addBlocks() {
Carving.chisel.addVariation("AECertusQuartz", GameRegistry.findBlock("appliedenergistics2", "tile.BlockQuartz"), 0, 0);
Carving.chisel.addVariation("AECertusQuartz", GameRegistry.findBlock("appliedenergistics2", "tile.BlockQuartzPillar"), 0, 1);
Carving.chisel.addVariation("AECertusQuartz", GameRegistry.findBlock("appliedenergistics2", "tile.BlockQuartzChiseled"), 0, 2);
Carving.chisel.registerOre("AECertusQuartz", "AECertusQuartz");
}
},
AE_SKY_STONE("appliedenergistics2") {
@Override
void addBlocks() {
Carving.chisel.addVariation("AESkyStone", GameRegistry.findBlock("appliedenergistics2", "tile.BlockSkyStone"), 1, 0);
Carving.chisel.addVariation("AESkyStone", GameRegistry.findBlock("appliedenergistics2", "tile.BlockSkyStone"), 2, 1);
Carving.chisel.addVariation("AESkyStone", GameRegistry.findBlock("appliedenergistics2", "tile.BlockSkyStone"), 3, 2);
Carving.chisel.registerOre("AESkyStone", "AESkyStone");
}
},
ALUMINUM {
@Override
void addBlocks() {
BlockCarvable aluminum = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable aluminum = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
aluminum.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/aluminum/caution", 20);
aluminum.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/aluminum/crate", 21);
@@ -85,6 +108,17 @@ public enum Features {
}
},
AMBER("Thaumcraft") {
@Override
void addBlocks() {
BlockCarvable amber = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeStone);
Carving.chisel.addVariation("amber", GameRegistry.findBlock("Thaumcraft", "blockCosmeticOpaque"), 0, 0);
Carving.chisel.addVariation("amber", GameRegistry.findBlock("Thaumcraft", "blockCosmeticOpaque"), 1, 1);
amber.carverHelper.registerAll(amber, "amber");
Carving.chisel.registerOre("amber", "amber");
}
},
ANDESITE {
@@ -142,6 +176,29 @@ public enum Features {
}
},
ARCANE("Thaumcraft") {
@Override
void addBlocks() {
BlockCarvable arcane = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeStone);
Carving.chisel.addVariation("arcane", GameRegistry.findBlock("Thaumcraft", "blockCosmeticSolid"), 6, -5);
Carving.chisel.addVariation("arcane", GameRegistry.findBlock("Thaumcraft", "blockCosmeticSolid"), 7, -4);
arcane.carverHelper.addVariation("tile.arcane.0.desc", 0, "arcane/moonEngrave");
arcane.carverHelper.addVariation("tile.arcane.1.desc", 1, "arcane/moonGlowAnim");
arcane.carverHelper.addVariation("tile.arcane.2.desc", 2, "arcane/arcaneTile");
arcane.carverHelper.addVariation("tile.arcane.3.desc", 3, "arcane/runes");
arcane.carverHelper.addVariation("tile.arcane.4.desc", 4, "arcane/runesGlow");
arcane.carverHelper.addVariation("tile.arcane.5.desc", 5, "arcane/bigBrick");
arcane.carverHelper.addVariation("tile.arcane.6.desc", 6, "arcane/conduitGlowAnim");
arcane.carverHelper.addVariation("tile.arcane.7.desc", 7, "arcane/BorderBrain");
arcane.carverHelper.addVariation("tile.arcane.8.desc", 8, "arcane/ArcaneBorder");
arcane.carverHelper.addVariation("tile.arcane.9.desc", 9, "arcane/arcaneMatrix");
arcane.carverHelper.addVariation("tile.arcane.10.desc", 10, "arcane/thaumcraftLogo");
arcane.carverHelper.addVariation("tile.arcane.11.desc", 11, "arcane/arcaneCrackAnim");
arcane.carverHelper.registerAll(arcane, "arcane");
Carving.chisel.registerOre("arcane", "arcane");
}
},
AUTO_CHISEL {
@@ -204,7 +261,35 @@ public enum Features {
Carving.chisel.registerOre("beacon", "beacon");
}
},
BLOOD_RUNE("AWWayofTime") {
@Override
void addBlocks() {
BlockCarvable bloodRune = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeStone);
Carving.chisel.addVariation("bloodRune", GameRegistry.findBlock("AWWayofTime", "AlchemicalWizardrybloodRune"), 0, 0);
bloodRune.carverHelper.addVariation("tile.bloodRune.0.desc", 0, "bloodMagic/bloodRuneArranged");
bloodRune.carverHelper.addVariation("tile.bloodRune.1.desc", 1, "bloodMagic/bloodRuneBricks");
bloodRune.carverHelper.addVariation("tile.bloodRune.2.desc", 2, "bloodMagic/bloodRuneCarved");
bloodRune.carverHelper.addVariation("tile.bloodRune.3.desc", 3, "bloodMagic/bloodRuneCarvedRadial");
bloodRune.carverHelper.addVariation("tile.bloodRune.4.desc", 4, "bloodMagic/bloodRuneClassicPanel");
bloodRune.carverHelper.addVariation("tile.bloodRune.5.desc", 5, "bloodMagic/bloodRuneTiles");
bloodRune.carverHelper.registerAll(bloodRune, "bloodRune");
Carving.chisel.registerOre("bloodRune", "bloodRune");
}
},
BLOOD_BLOCK("AWWayofTime") {
@Override
void addBlocks() {
BlockCarvable bloodBrick = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeStone);
Carving.chisel.addVariation("bloodBrick", GameRegistry.findBlock("AWWayofTime", "largeBloodStoneBrick"), 0, 0);
Carving.chisel.addVariation("bloodBrick", GameRegistry.findBlock("AWWayofTime", "bloodStoneBrick"), 0, 1);
bloodBrick.carverHelper.registerAll(bloodBrick, "bloodBrick");
Carving.chisel.registerOre("bloodBrick", "bloodBrick");
}
},
BOOKSHELF {
@@ -248,7 +333,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable bronze = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable bronze = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
bronze.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/bronze/caution", 20);
bronze.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/bronze/crate", 21);
@@ -499,7 +584,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable copper = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable copper = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
copper.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/copper/caution", 20);
copper.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/copper/crate", 21);
@@ -922,7 +1007,7 @@ public enum Features {
gold_block.carverHelper.addVariation("tile.gold.13.desc", 13, "gold/terrain-gold-spaceblack");
gold_block.carverHelper.addVariation("tile.gold.14.desc", 14, "gold/terrain-gold-simple");
BlockCarvable gold2 = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable gold2 = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
gold2.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/gold/caution", 20);
gold2.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/gold/crate", 21);
@@ -1181,7 +1266,7 @@ public enum Features {
iron_block.carverHelper.addVariation("tile.iron.14.desc", 14, "iron/terrain-iron-vents");
iron_block.carverHelper.addVariation("tile.iron.15.desc", 15, "iron/terrain-iron-simple");
BlockCarvable iron2 = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable iron2 = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
iron2.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/iron/caution", 20);
iron2.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/iron/crate", 21);
@@ -1295,7 +1380,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable lead = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable lead = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
lead.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/lead/caution");
lead.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/lead/crate");
@@ -1933,6 +2018,142 @@ public enum Features {
}
},
/**
* Dummy feature for all RC subsets
*/
RAILCRAFT("Railcraft"),
RC_ABYSSAL_BLOCK(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block abyssal = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.abyssal");
if (abyssal == null) {
abyssal = GameRegistry.findBlock("Railcraft", "brick.abyssal");
}
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 0, 0);
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 1, 1);
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 2, 2);
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 3, 3);
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 4, 4);
Carving.chisel.addVariation("RCAbyssalBlock", abyssal, 5, 5);
Carving.chisel.registerOre("RCAbyssalBlock", "RCAbyssalBlock");
}
;
},
RC_BLEACHED_BONE(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block bleachedBone = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.bleachedbone");
if (bleachedBone == null) {
bleachedBone = GameRegistry.findBlock("Railcraft", "brick.bleachedbone");
}
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 0, 0);
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 1, 1);
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 2, 2);
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 3, 3);
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 4, 4);
Carving.chisel.addVariation("RCBleachedBone", bleachedBone, 5, 5);
Carving.chisel.registerOre("RCBleachedBone", "RCBleachedBone");
}
},
RC_BLOOD_STAINED(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block bloodStained = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.bloodstained");
if (bloodStained == null) {
bloodStained = GameRegistry.findBlock("Railcraft", "brick.bloodstained");
}
Carving.chisel.addVariation("RCBloodStained", bloodStained, 0, 0);
Carving.chisel.addVariation("RCBloodStained", bloodStained, 1, 1);
Carving.chisel.addVariation("RCBloodStained", bloodStained, 2, 2);
Carving.chisel.addVariation("RCBloodStained", bloodStained, 3, 3);
Carving.chisel.addVariation("RCBloodStained", bloodStained, 4, 4);
Carving.chisel.addVariation("RCBloodStained", bloodStained, 5, 5);
Carving.chisel.registerOre("RCBloodStained", "RCBloodStained");
}
},
RC_FROST_BOUND_BLOCK(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block frostBound = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.frostbound");
if (frostBound == null) {
frostBound = GameRegistry.findBlock("Railcraft", "brick.frostbound");
}
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 0, 0);
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 1, 1);
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 2, 2);
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 3, 3);
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 4, 4);
Carving.chisel.addVariation("RCFrostBoundBlock", frostBound, 5, 5);
Carving.chisel.registerOre("RCFrostBoundBlock", "RCFrostBoundBlock");
}
},
RC_INFERNAL_STONE(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block infernal = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.infernal");
if (infernal == null) {
infernal = GameRegistry.findBlock("Railcraft", "brick.infernal");
}
Carving.chisel.addVariation("RCInfernalStone", infernal, 0, 0);
Carving.chisel.addVariation("RCInfernalStone", infernal, 1, 1);
Carving.chisel.addVariation("RCInfernalStone", infernal, 2, 2);
Carving.chisel.addVariation("RCInfernalStone", infernal, 3, 3);
Carving.chisel.addVariation("RCInfernalStone", infernal, 4, 4);
Carving.chisel.addVariation("RCInfernalStone", infernal, 5, 5);
Carving.chisel.registerOre("RCInfernalStone", "RCInfernalStone");
}
},
RC_QUARRIED_BLOCK(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block quarried = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.quarried");
if (quarried == null) {
quarried = GameRegistry.findBlock("Railcraft", "brick.quarried");
}
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 0, 0);
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 1, 1);
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 2, 2);
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 3, 3);
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 4, 4);
Carving.chisel.addVariation("RCQuarriedBlock", quarried, 5, 5);
Carving.chisel.registerOre("RCQuarriedBlock", "RCQuarriedBlock");
}
;
},
RC_SANDY_STONE(RAILCRAFT.getRequiredMod(), RAILCRAFT) {
@Override
void addBlocks() {
Block sandy = GameRegistry.findBlock("Railcraft", "tile.railcraft.brick.sandy");
if (sandy == null) {
sandy = GameRegistry.findBlock("Railcraft", "brick.sandy");
}
Carving.chisel.addVariation("RCSandyStone", sandy, 0, 0);
Carving.chisel.addVariation("RCSandyStone", sandy, 1, 1);
Carving.chisel.addVariation("RCSandyStone", sandy, 2, 2);
Carving.chisel.addVariation("RCSandyStone", sandy, 3, 3);
Carving.chisel.addVariation("RCSandyStone", sandy, 4, 4);
Carving.chisel.addVariation("RCSandyStone", sandy, 5, 5);
Carving.chisel.registerOre("RCSandyStone", "RCSandyStone");
}
},
REDSTONE_BLOCK {
@@ -2054,7 +2275,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable silver = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable silver = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
silver.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/silver/caution", 20);
silver.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/silver/crate", 21);
@@ -2135,7 +2356,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable steel = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable steel = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
steel.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/steel/caution", 20);
steel.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/steel/crate", 21);
@@ -2189,6 +2410,18 @@ public enum Features {
}
},
TALLOW("Thaumcraft") {
@Override
void addBlocks() {
BlockCarvable tallow = (BlockCarvable) new BlockCarvable(Material.rock).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeSnow);
Carving.chisel.addVariation("tallow", GameRegistry.findBlock("Thaumcraft", "blockCosmeticSolid"), 5, 0);
tallow.carverHelper.addVariation("tile.tallow.0.desc", 0, "tallow/smooth");
tallow.carverHelper.addVariation("tile.tallow.0.desc", 1, "tallow/faces");
tallow.carverHelper.registerAll(tallow, "tallow");
Carving.chisel.registerOre("tallow", "tallow");
}
},
TECHNICAL {
@@ -2318,7 +2551,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable tin = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable tin = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
tin.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/tin/caution", 20);
tin.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/tin/crate", 21);
@@ -2331,6 +2564,66 @@ public enum Features {
}
},
/**
* Dummy feature for all TF subsets
*/
TWILGHT_FOREST("TwilightForest"),
TF_MAZESTONE(TWILGHT_FOREST.getRequiredMod(), TWILGHT_FOREST) {
@Override
void addBlocks() {
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 0, 0);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 1, 1);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 2, 2);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 3, 3);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 4, 4);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 5, 5);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 6, 6);
Carving.chisel.addVariation("TFMazestone", GameRegistry.findBlock("TwilightForest", "tile.TFMazestone"), 7, 7);
Carving.chisel.registerOre("TFMazestone", "TFMazestone");
}
},
TF_TOWERSTONE(TWILGHT_FOREST.getRequiredMod(), TWILGHT_FOREST) {
@Override
void addBlocks() {
Carving.chisel.addVariation("TFTowerStone", GameRegistry.findBlock("TwilightForest", "tile.TFTowerStone"), 0, 0);
Carving.chisel.addVariation("TFTowerStone", GameRegistry.findBlock("TwilightForest", "tile.TFTowerStone"), 1, 1);
Carving.chisel.addVariation("TFTowerStone", GameRegistry.findBlock("TwilightForest", "tile.TFTowerStone"), 2, 2);
Carving.chisel.addVariation("TFTowerStone", GameRegistry.findBlock("TwilightForest", "tile.TFTowerStone"), 3, 3);
Carving.chisel.registerOre("TFTowerStone", "TFTowerStone");
}
},
TF_UNDER_BRICK(TWILGHT_FOREST.getRequiredMod(), TWILGHT_FOREST) {
@Override
void addBlocks() {
Carving.chisel.addVariation("TFUnderBrick", GameRegistry.findBlock("TwilightForest", "tile.TFUnderBrick"), 0, 0);
Carving.chisel.addVariation("TFUnderBrick", GameRegistry.findBlock("TwilightForest", "tile.TFUnderBrick"), 1, 1);
Carving.chisel.addVariation("TFUnderBrick", GameRegistry.findBlock("TwilightForest", "tile.TFUnderBrick"), 2, 2);
Carving.chisel.registerOre("TFUnderBrick", "TFUnderBrick");
}
},
THAUMIUM("Thaumcraft") {
@Override
void addBlocks() {
BlockCarvable thaumium = (BlockCarvable) new BlockCarvable(Material.iron).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setStepSound(Block.soundTypeMetal);
Carving.chisel.addVariation("thaumium", GameRegistry.findBlock("Thaumcraft", "blockCosmeticSolid"), 4, 0);
thaumium.carverHelper.addVariation("tile.thaumium.0.desc", 0, "thaumium/ornate", 20);
thaumium.carverHelper.addVariation("tile.thaumium.1.desc", 1, "thaumium/totem", 21);
thaumium.carverHelper.addVariation("tile.thaumium.2.desc", 2, "thaumium/thaumiumBigBricks", 22);
thaumium.carverHelper.addVariation("tile.thaumium.3.desc", 3, "thaumium/small", 23);
thaumium.carverHelper.addVariation("tile.thaumium.4.desc", 4, "thaumium/lattice", 24);
thaumium.carverHelper.addVariation("tile.thaumium.5.desc", 5, "thaumium/planks", 25);
thaumium.carverHelper.registerAll(thaumium, "thaumium");
Carving.chisel.registerOre("thaumium", "thaumium");
}
},
TORCH {
@@ -2393,7 +2686,7 @@ public enum Features {
@Override
void addBlocks() {
BlockCarvable uranium = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabOtherChiselBlocks).setHardness(5F)
BlockCarvable uranium = (BlockCarvable) new BlockBeaconBase(Material.iron).setStepSound(Block.soundTypeMetal).setCreativeTab(ChiselTabs.tabModdedChiselBlocks).setHardness(5F)
.setResistance(10F);
uranium.carverHelper.addVariation("tile.metalOre.0.desc", 0, "metals/uranium/caution", 20);
uranium.carverHelper.addVariation("tile.metalOre.1.desc", 1, "metals/uranium/crate", 21);
@@ -2697,6 +2990,14 @@ public enum Features {
}
}
public static boolean oneModdedFeatureLoaded() {
for (Features f : values()) {
if (f.hasRequiredMod()) {
return true;
}
}
return false;
}
static void preInit() {
Chisel.logger.info("Starting pre-init...");
@@ -58,18 +58,19 @@ public class ChiselTabs {
}
}
private static boolean atLeastOneModIsLoaded = false;
public static final CustomCreativeTab tabChisel = new CustomCreativeTab("tabChisel", false);
public static final CustomCreativeTab tabStoneChiselBlocks = new CustomCreativeTab("tabStoneChiselBlocks", true);
public static final CustomCreativeTab tabWoodChiselBlocks = new CustomCreativeTab("tabWoodChiselBlocks", true);
public static final CustomCreativeTab tabMetalChiselBlocks = new CustomCreativeTab("tabMetalChiselBlocks", true);
public static final CustomCreativeTab tabOtherChiselBlocks = new CustomCreativeTab("tabOtherChiselBlocks", true);
public static final CustomCreativeTab tabModdedChiselBlocks = new CustomCreativeTab("tabModdedChiselBlocks", true);
public static final CustomCreativeTab tabStairChiselBlocks = new CustomCreativeTab("tabStairChiselBlocks", true);
// this serves mostly just to load the static initializers
public static void preInit() {
atLeastOneModIsLoaded = Features.oneModdedFeatureLoaded();
}
public static void postInit() {
@@ -99,5 +100,17 @@ public class ChiselTabs {
else
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.nether_brick_stairs));
if (atLeastOneModIsLoaded) {
if (Features.ARCANE.enabled()) {
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.arcane));
} else if (Features.BLOOD_RUNE.enabled()) {
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.bloodRune));
} else {
if (ChiselBlocks.voidstone != null)
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.voidstone));
else
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.obsidian));
}
}
}
}