mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-24 06:04:38 +00:00
Begin major feature structor overhaul. Just recipes left to do.
This commit is contained in:
1 parent
71016458bd
commit
85e58f4f57
32 files changed
+424
-2116
No files matched your search
@@ -14,7 +14,7 @@ import com.cricketcraft.chisel.Chisel;
|
||||
import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
import com.cricketcraft.chisel.init.ModTabs;
|
||||
import com.cricketcraft.chisel.init.ChiselTabs;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -33,7 +33,7 @@ public class BlockCarvable extends Block implements ICarvable {
|
||||
carverHelper = new CarvableHelper();
|
||||
setResistance(10.0F);
|
||||
setHardness(2.0F);
|
||||
setCreativeTab(ModTabs.tabOtherChiselBlocks);
|
||||
setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
}
|
||||
|
||||
public BlockCarvable setStained(boolean a) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.cricketcraft.chisel.Chisel;
|
||||
import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
import com.cricketcraft.chisel.init.ModTabs;
|
||||
import com.cricketcraft.chisel.init.ChiselTabs;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -27,7 +27,7 @@ public class BlockCarvableGlass extends BlockGlass implements ICarvable {
|
||||
super(Material.glass, false);
|
||||
|
||||
carverHelper = new CarvableHelper();
|
||||
setCreativeTab(ModTabs.tabOtherChiselBlocks);
|
||||
setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
}
|
||||
|
||||
public BlockCarvableGlass setStained(boolean a) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
import com.cricketcraft.chisel.client.render.BlockMarblePaneRenderer;
|
||||
import com.cricketcraft.chisel.init.ModTabs;
|
||||
import com.cricketcraft.chisel.init.ChiselTabs;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -28,7 +28,7 @@ public class BlockCarvablePane extends BlockPane implements ICarvable {
|
||||
|
||||
carverHelper = new CarvableHelper();
|
||||
|
||||
setCreativeTab(ModTabs.tabOtherChiselBlocks);
|
||||
setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
}
|
||||
|
||||
public BlockCarvablePane setStained(boolean a) {
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.cricketcraft.chisel.Chisel;
|
||||
import com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
import com.cricketcraft.chisel.init.ModTabs;
|
||||
import com.cricketcraft.chisel.init.ChiselTabs;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -27,7 +27,7 @@ public class BlockCarvableSand extends BlockSand implements ICarvable {
|
||||
public BlockCarvableSand() {
|
||||
super();
|
||||
carverHelper = new CarvableHelper();
|
||||
setCreativeTab(ModTabs.tabOtherChiselBlocks);
|
||||
setCreativeTab(ChiselTabs.tabOtherChiselBlocks);
|
||||
}
|
||||
|
||||
public BlockCarvableSand setStained(boolean a) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.Configurations;
|
||||
import com.cricketcraft.chisel.config.Configurations;
|
||||
|
||||
public class BlockCloud extends BlockCarvable {
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.Configurations;
|
||||
import com.cricketcraft.chisel.client.GeneralChiselClient;
|
||||
import com.cricketcraft.chisel.config.Configurations;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.init.ModBlocks;
|
||||
import com.cricketcraft.chisel.init.ChiselBlocks;
|
||||
|
||||
public class BlockMarbleIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@@ -20,12 +20,12 @@ public class BlockMarbleIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@Override
|
||||
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6) {
|
||||
ModBlocks.ice.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
|
||||
ChiselBlocks.ice.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int quantityDropped(Random par1Random) {
|
||||
return ModBlocks.ice.quantityDropped(par1Random);
|
||||
return ChiselBlocks.ice.quantityDropped(par1Random);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -35,7 +35,7 @@ public class BlockMarbleIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@Override
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
ModBlocks.ice.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
ChiselBlocks.ice.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.init.ModBlocks;
|
||||
import com.cricketcraft.chisel.init.ChiselBlocks;
|
||||
|
||||
public class BlockMarblePackedIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@@ -20,12 +20,12 @@ public class BlockMarblePackedIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@Override
|
||||
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6) {
|
||||
ModBlocks.ice.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
|
||||
ChiselBlocks.ice.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int quantityDropped(Random par1Random) {
|
||||
return ModBlocks.ice.quantityDropped(par1Random);
|
||||
return ChiselBlocks.ice.quantityDropped(par1Random);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -35,7 +35,7 @@ public class BlockMarblePackedIceStairs extends BlockMarbleStairs {
|
||||
|
||||
@Override
|
||||
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random) {
|
||||
ModBlocks.ice.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
ChiselBlocks.ice.updateTick(par1World, par2, par3, par4, par5Random);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -44,42 +44,7 @@ public class BlockPresent extends BlockChest implements ICarvable {
|
||||
}
|
||||
|
||||
public String getKindOfChest(int type) {
|
||||
switch (type) {
|
||||
case 0:
|
||||
return "textures/blocks/present/presentChest0";
|
||||
case 1:
|
||||
return "textures/blocks/present/presentChest1";
|
||||
case 2:
|
||||
return "textures/blocks/present/presentChest2";
|
||||
case 3:
|
||||
return "textures/blocks/present/presentChest3";
|
||||
case 4:
|
||||
return "textures/blocks/present/presentChest4";
|
||||
case 5:
|
||||
return "textures/blocks/present/presentChest5";
|
||||
case 6:
|
||||
return "textures/blocks/present/presentChest6";
|
||||
case 7:
|
||||
return "textures/blocks/present/presentChest7";
|
||||
case 8:
|
||||
return "textures/blocks/present/presentChest8";
|
||||
case 9:
|
||||
return "textures/blocks/present/presentChest9";
|
||||
case 10:
|
||||
return "textures/blocks/present/presentChest10";
|
||||
case 11:
|
||||
return "textures/blocks/present/presentChest11";
|
||||
case 12:
|
||||
return "textures/blocks/present/presentChest12";
|
||||
case 13:
|
||||
return "textures/blocks/present/presentChest13";
|
||||
case 14:
|
||||
return "textures/blocks/present/presentChest14";
|
||||
case 15:
|
||||
return "textures/blocks/present/presentChest15";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
return "textures/blocks/present/presentChest" + type;
|
||||
}
|
||||
|
||||
private static boolean isCatSittingOnMe(World world, int x, int y, int z) {
|
||||
@@ -248,7 +213,7 @@ public class BlockPresent extends BlockChest implements ICarvable {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z, int strength) {
|
||||
public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z, int direction) {
|
||||
if (!canProvidePower()) {
|
||||
return 0;
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import com.cricketcraft.chisel.carving.Carving;
|
||||
import com.cricketcraft.chisel.init.ModItems;
|
||||
import com.cricketcraft.chisel.init.ChiselItems;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -26,7 +26,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
||||
SPEED, AUTOMATION, STACK;
|
||||
|
||||
public String getUnlocalizedName() {
|
||||
return ModItems.upgrade.getUnlocalizedName() + "_" + this.name().toLowerCase();
|
||||
return ChiselItems.upgrade.getUnlocalizedName() + "_" + this.name().toLowerCase();
|
||||
}
|
||||
|
||||
public String getLocalizedName() {
|
||||
@@ -302,7 +302,7 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
|
||||
public boolean hasUpgrade(Upgrade upgrade) {
|
||||
ItemStack stack = inventory[MIN_UPGRADE + upgrade.ordinal()];
|
||||
if (stack != null) {
|
||||
return stack.getItem() == ModItems.upgrade && stack.getItemDamage() == upgrade.ordinal();
|
||||
return stack.getItem() == ChiselItems.upgrade && stack.getItemDamage() == upgrade.ordinal();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user