mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
1.7 update ModBlocks and ModItems
This commit is contained in:
1 parent
8892f5f1b1
commit
9555d9feb7
8 files changed
+39
-42
No files matched your search
@@ -77,31 +77,31 @@ public final class ModBlocks {
|
||||
public static Block portal;
|
||||
public static Block golemConnector;
|
||||
public static void initBlocks() {
|
||||
darkQuartz = new BlockDarkQuartz(LibBlockIDs.idDarkQuartz).setUnlocalizedName(LibBlockNames.DARK_QUARTZ);
|
||||
darkQuartzSlab = new BlockDarkQuartzSlab(LibBlockIDs.idDarkQuartzSlab, false).setUnlocalizedName(LibBlockNames.DARK_QUARTZ_SLAB);
|
||||
darkQuartzSlabFull = new BlockDarkQuartzSlab(LibBlockIDs.idDarkQuartzSlabFull, true).setUnlocalizedName(LibBlockNames.DARK_QUARTZ_SLAB);
|
||||
darkQuartzStairs = new BlockDarkQuartzStairs(LibBlockIDs.idDarkQuartzStairs).setUnlocalizedName(LibBlockNames.DARK_QUARTZ_STAIRS);
|
||||
interfase = new BlockTransvectorInterface(LibBlockIDs.idInterface).setUnlocalizedName(LibBlockNames.INTERFACE);
|
||||
gaseousLight = new BlockGaseousLight(LibBlockIDs.idGaseousLight).setUnlocalizedName(LibBlockNames.GASEOUS_LIGHT);
|
||||
gaseousShadow = new BlockGaseousShadow(LibBlockIDs.idGaseousShadow).setUnlocalizedName(LibBlockNames.GASEOUS_SHADOW);
|
||||
animationTablet = new BlockAnimationTablet(LibBlockIDs.idAnimationTablet).setUnlocalizedName(LibBlockNames.ANIMATION_TABLET);
|
||||
nitorGas = new BlockNitorGas(LibBlockIDs.idNitorGas).setUnlocalizedName(LibBlockNames.NITOR_GAS);
|
||||
magnet = new BlockMagnet(LibBlockIDs.idMagnet).setUnlocalizedName(LibBlockNames.MAGNET);
|
||||
enchanter = new BlockEnchanter(LibBlockIDs.idEnchanter).setUnlocalizedName(LibBlockNames.ENCHANTER);
|
||||
funnel = new BlockFunnel(LibBlockIDs.idFunnel).setUnlocalizedName(LibBlockNames.FUNNEL);
|
||||
dislocator = new BlockTransvectorDislocator(LibBlockIDs.idDislocator).setUnlocalizedName(LibBlockNames.DISLOCATOR);
|
||||
repairer = new BlockRepairer(LibBlockIDs.idRepairer).setUnlocalizedName(LibBlockNames.REPAIRER);
|
||||
aspectAnalyzer = new BlockAspectAnalyzer(LibBlockIDs.idAspectAnalyzer).setUnlocalizedName(LibBlockNames.ASPECT_ANALYZER);
|
||||
platform = new BlockPlatform(LibBlockIDs.idPlatform).setUnlocalizedName(LibBlockNames.PLATFORM);
|
||||
darkQuartz = new BlockDarkQuartz(LibBlockIDs.idDarkQuartz).setBlockName(LibBlockNames.DARK_QUARTZ);
|
||||
darkQuartzSlab = new BlockDarkQuartzSlab(LibBlockIDs.idDarkQuartzSlab, false).setBlockName(LibBlockNames.DARK_QUARTZ_SLAB);
|
||||
darkQuartzSlabFull = new BlockDarkQuartzSlab(LibBlockIDs.idDarkQuartzSlabFull, true).setBlockName(LibBlockNames.DARK_QUARTZ_SLAB);
|
||||
darkQuartzStairs = new BlockDarkQuartzStairs(LibBlockIDs.idDarkQuartzStairs).setBlockName(LibBlockNames.DARK_QUARTZ_STAIRS);
|
||||
interfase = new BlockTransvectorInterface(LibBlockIDs.idInterface).setBlockName(LibBlockNames.INTERFACE);
|
||||
gaseousLight = new BlockGaseousLight(LibBlockIDs.idGaseousLight).setBlockName(LibBlockNames.GASEOUS_LIGHT);
|
||||
gaseousShadow = new BlockGaseousShadow(LibBlockIDs.idGaseousShadow).setBlockName(LibBlockNames.GASEOUS_SHADOW);
|
||||
animationTablet = new BlockAnimationTablet(LibBlockIDs.idAnimationTablet).setBlockName(LibBlockNames.ANIMATION_TABLET);
|
||||
nitorGas = new BlockNitorGas(LibBlockIDs.idNitorGas).setBlockName(LibBlockNames.NITOR_GAS);
|
||||
magnet = new BlockMagnet(LibBlockIDs.idMagnet).setBlockName(LibBlockNames.MAGNET);
|
||||
enchanter = new BlockEnchanter(LibBlockIDs.idEnchanter).setBlockName(LibBlockNames.ENCHANTER);
|
||||
funnel = new BlockFunnel(LibBlockIDs.idFunnel).setBlockName(LibBlockNames.FUNNEL);
|
||||
dislocator = new BlockTransvectorDislocator(LibBlockIDs.idDislocator).setBlockName(LibBlockNames.DISLOCATOR);
|
||||
repairer = new BlockRepairer(LibBlockIDs.idRepairer).setBlockName(LibBlockNames.REPAIRER);
|
||||
aspectAnalyzer = new BlockAspectAnalyzer(LibBlockIDs.idAspectAnalyzer).setBlockName(LibBlockNames.ASPECT_ANALYZER);
|
||||
platform = new BlockPlatform(LibBlockIDs.idPlatform).setBlockName(LibBlockNames.PLATFORM);
|
||||
|
||||
mobilizerRelay = new BlockMobilizerRelay(LibBlockIDs.idMobilizerRelay).setUnlocalizedName(LibBlockNames.MOBILIZER_RELAY);
|
||||
mobilizer = new BlockMobilizer(LibBlockIDs.idMobilizer).setUnlocalizedName(LibBlockNames.MOBILIZER);
|
||||
golemConnector=new BlockGolemConnector(LibBlockIDs.idGolemConnector).setUnlocalizedName(LibBlockNames.GOLEMCONNECTOR);
|
||||
mobilizerRelay = new BlockMobilizerRelay(LibBlockIDs.idMobilizerRelay).setBlockName(LibBlockNames.MOBILIZER_RELAY);
|
||||
mobilizer = new BlockMobilizer(LibBlockIDs.idMobilizer).setBlockName(LibBlockNames.MOBILIZER);
|
||||
golemConnector=new BlockGolemConnector(LibBlockIDs.idGolemConnector).setBlockName(LibBlockNames.GOLEMCONNECTOR);
|
||||
|
||||
spawner = new BlockSummon(LibBlockIDs.idSpawner).setUnlocalizedName(LibBlockNames.SPAWNER);
|
||||
spawner = new BlockSummon(LibBlockIDs.idSpawner).setBlockName(LibBlockNames.SPAWNER);
|
||||
if(ConfigHandler.enableKami) {
|
||||
|
||||
warpGate = new BlockWarpGate(LibBlockIDs.idWarpGate).setUnlocalizedName(LibBlockNames.WARP_GATE);
|
||||
warpGate = new BlockWarpGate(LibBlockIDs.idWarpGate).setBlockName(LibBlockNames.WARP_GATE);
|
||||
if(ConfigHandler.bedrockDimensionID != 0) {
|
||||
Block.blocksList[7]=null;
|
||||
bedrock = new BlockBedrockKAMI();
|
||||
@@ -121,7 +121,7 @@ public final class ModBlocks {
|
||||
} catch (IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
portal = new BlockBedrockPortal(LibBlockIDs.idPortal).setUnlocalizedName(LibBlockNames.PORTAL);
|
||||
portal = new BlockBedrockPortal(LibBlockIDs.idPortal).setBlockName(LibBlockNames.PORTAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ package vazkii.tinkerer.common.block.quartz;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.BlockHalfSlab;
|
||||
import net.minecraft.block.BlockSlab;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -28,7 +29,7 @@ import vazkii.tinkerer.common.lib.LibBlockNames;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockDarkQuartzSlab extends BlockHalfSlab {
|
||||
public class BlockDarkQuartzSlab extends BlockSlab {
|
||||
|
||||
public BlockDarkQuartzSlab(int par1, boolean par2) {
|
||||
super(par1, par2, Material.rock);
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
package vazkii.tinkerer.common.item;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.EnumToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.common.EnumHelper;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import thaumcraft.api.wands.WandCap;
|
||||
import thaumcraft.api.wands.WandRod;
|
||||
import vazkii.tinkerer.common.block.ModBlocks;
|
||||
@@ -114,7 +113,7 @@ public final class ModItems {
|
||||
public static WandCap capIchor;
|
||||
public static WandRod rodIchorcloth;
|
||||
|
||||
public static EnumToolMaterial toolMatIchor;
|
||||
public static Item.ToolMaterial toolMatIchor;
|
||||
public static boolean Registered=false;
|
||||
public static void initItems() {
|
||||
gaseousLight = new ItemGas(LibItemIDs.idGaseousLight, ModBlocks.gaseousLight).setUnlocalizedName(LibItemNames.GASEOUS_LIGHT);
|
||||
@@ -176,13 +175,6 @@ public final class ModItems {
|
||||
|
||||
capIchor = new CapIchor();
|
||||
rodIchorcloth = new RodIchorcloth();
|
||||
|
||||
MinecraftForge.setToolClass(ichorPick, "pickaxe", 4);
|
||||
MinecraftForge.setToolClass(ichorShovel, "shovel", 4);
|
||||
MinecraftForge.setToolClass(ichorAxe, "axe", 4);
|
||||
MinecraftForge.setToolClass(ichorPickGem, "pickaxe", 4);
|
||||
MinecraftForge.setToolClass(ichorShovelGem, "shovel", 4);
|
||||
MinecraftForge.setToolClass(ichorAxeGem, "axe", 4);
|
||||
}
|
||||
registerItems();
|
||||
|
||||
|
||||
@@ -28,8 +28,9 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
public class ItemIchorAxe extends ItemAxe {
|
||||
|
||||
public ItemIchorAxe(int par1) {
|
||||
super(par1, ModItems.toolMatIchor);
|
||||
super(ModItems.toolMatIchor);
|
||||
setCreativeTab(ModCreativeTab.INSTANCE);
|
||||
setHarvestLevel("axe", 4);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -30,6 +30,8 @@ public class ItemIchorPick extends ItemPickaxe {
|
||||
public ItemIchorPick(int par1) {
|
||||
super(par1, ModItems.toolMatIchor);
|
||||
setCreativeTab(ModCreativeTab.INSTANCE);
|
||||
|
||||
setHarvestLevel("pickaxe", 4);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -27,9 +27,10 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class ItemIchorShovel extends ItemSpade {
|
||||
|
||||
public ItemIchorShovel(int par1) {
|
||||
super(par1, ModItems.toolMatIchor);
|
||||
public ItemIchorShovel() {
|
||||
super(ModItems.toolMatIchor);
|
||||
setCreativeTab(ModCreativeTab.INSTANCE);
|
||||
setHarvestLevel("shovel", 4);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
*/
|
||||
package vazkii.tinkerer.common.item.quartz;
|
||||
|
||||
import net.minecraft.item.ItemMultiTextureTile;
|
||||
import net.minecraft.item.ItemMultiTexture;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import vazkii.tinkerer.common.block.ModBlocks;
|
||||
import vazkii.tinkerer.common.lib.LibBlockNames;
|
||||
|
||||
public class ItemDarkQuartzBlock extends ItemMultiTextureTile {
|
||||
//Changed from ItemMultiTextureTile to ItemMultiTexture for 1.7
|
||||
public class ItemDarkQuartzBlock extends ItemMultiTexture {
|
||||
|
||||
public ItemDarkQuartzBlock(int par1) {
|
||||
super(par1, ModBlocks.darkQuartz, new String[] { "" } );
|
||||
super(ModBlocks.darkQuartz, ModBlocks.darkQuartz, new String[] { "" } );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user