Massive rework of configs, items and blocks.
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
This commit is contained in:
parent
8601e9faff
commit
e3644f2d2b
304 changed files with 3941 additions and 5108 deletions
|
@ -2,6 +2,8 @@ package WayofTime.alchemicalWizardry.common.block;
|
|||
|
||||
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEConduit;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
|
@ -10,11 +12,8 @@ import net.minecraft.tileentity.TileEntity;
|
|||
import net.minecraft.util.Icon;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockConduit extends BlockContainer
|
||||
{
|
||||
public class BlockConduit extends BlockContainer {
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static Icon topIcon;
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
@ -23,6 +22,7 @@ public class BlockConduit extends BlockContainer
|
|||
private static Icon sideIcon2;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private static Icon bottomIcon;
|
||||
|
||||
public BlockConduit(int id)
|
||||
{
|
||||
super(id, Material.rock);
|
||||
|
@ -55,10 +55,10 @@ public class BlockConduit extends BlockContainer
|
|||
case 1:
|
||||
return topIcon;
|
||||
|
||||
//case 2: return sideIcon1;
|
||||
//case 3: return sideIcon1;
|
||||
//case 4: return sideIcon2;
|
||||
//case 5: return sideIcon2;
|
||||
//case 2: return sideIcon1;
|
||||
//case 3: return sideIcon1;
|
||||
//case 4: return sideIcon2;
|
||||
//case 5: return sideIcon2;
|
||||
default:
|
||||
return sideIcon2;
|
||||
}
|
||||
|
@ -78,25 +78,22 @@ public class BlockConduit extends BlockContainer
|
|||
if (tile instanceof TEConduit)
|
||||
{
|
||||
//TODO NEEDS WORK
|
||||
if (((TEConduit)tile).getInputDirection().equals(sideClicked))
|
||||
if (((TEConduit) tile).getInputDirection().equals(sideClicked))
|
||||
{
|
||||
((TEConduit)tile).setInputDirection(((TEConduit)tile).getOutputDirection());
|
||||
((TEConduit)tile).setOutputDirection(sideClicked);
|
||||
}
|
||||
else if (((TEConduit)tile).getOutputDirection().equals(sideClicked))
|
||||
((TEConduit) tile).setInputDirection(((TEConduit) tile).getOutputDirection());
|
||||
((TEConduit) tile).setOutputDirection(sideClicked);
|
||||
} else if (((TEConduit) tile).getOutputDirection().equals(sideClicked))
|
||||
{
|
||||
((TEConduit)tile).setOutputDirection(((TEConduit)tile).getInputDirection());
|
||||
((TEConduit)tile).setInputDirection(sideClicked);
|
||||
}
|
||||
else
|
||||
((TEConduit) tile).setOutputDirection(((TEConduit) tile).getInputDirection());
|
||||
((TEConduit) tile).setInputDirection(sideClicked);
|
||||
} else
|
||||
{
|
||||
if (!player.isSneaking())
|
||||
{
|
||||
((TEConduit)tile).setOutputDirection(sideClicked);
|
||||
}
|
||||
else
|
||||
((TEConduit) tile).setOutputDirection(sideClicked);
|
||||
} else
|
||||
{
|
||||
((TEConduit)tile).setOutputDirection(sideClicked.getOpposite());
|
||||
((TEConduit) tile).setOutputDirection(sideClicked.getOpposite());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue