i want to know how how to change the orientation of my meta data blocks by on where i stand when placing them does anyone know how to do it here is my block file
package TheCivilizationMod;
import java.util.List;
import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.EntityLiving;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Material;
import net.minecraft.src.MathHelper;
import net.minecraft.src.World;
import net.minecraftforge.common.ForgeDirection;
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly;
public class glass extends Block{
public glass(int id, int texture){
super(id, texture, Material.rock);
this.setCreativeTab(CreativeTabs.tabBlock);
this.setRequiresSelfNotify();
}
public String getTextureFile(){
return "/Mod/MultiBlocks.png";
}
public int getBlockTextureFromSideAndMetadata(int side, int meta) {
switch(meta) {
case 0:
switch(side) {
case 0: return 22;
case 1: return 22;
case 2: return 22;
case 3: return 0;
default: return 22;
}
case 1:
switch(side) {
case 0: return 23;
case 1: return 23;
case 2: return 23;
case 3: return 0;
default: return 23;
}
return side;
}
@Override
public int damageDropped(int meta){
return meta;
}
@SideOnly(Side.CLIENT)
public void getSubBlocks(int par1, CreativeTabs tab, List list){
for(int NumOfMets=0; NumOfMets<2; NumOfMets++){
list.add(new ItemStack(par1, 1, NumOfMets));
}
}
}