2013-04-17 02:48:49 +02:00
|
|
|
package StevenDimDoors.mod_pocketDim.blocks;
|
2013-02-18 03:46:16 +01:00
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
2013-04-17 02:48:49 +02:00
|
|
|
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
|
|
|
|
2013-03-29 23:19:27 +01:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
2013-02-18 03:46:16 +01:00
|
|
|
import net.minecraft.block.material.Material;
|
2013-03-29 23:19:27 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
2013-02-18 03:46:16 +01:00
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
|
|
import net.minecraft.item.Item;
|
2013-03-29 23:19:27 +01:00
|
|
|
import net.minecraft.util.Icon;
|
2013-02-18 03:46:16 +01:00
|
|
|
import net.minecraft.util.MathHelper;
|
2013-03-29 23:19:27 +01:00
|
|
|
import net.minecraft.world.IBlockAccess;
|
2013-02-18 03:46:16 +01:00
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
public class linkDimDoor extends dimDoor
|
|
|
|
{
|
2013-03-29 23:19:27 +01:00
|
|
|
private Icon blockIconBottom;
|
2013-04-17 02:48:49 +02:00
|
|
|
public linkDimDoor(int par1, Material material) {
|
2013-03-29 23:19:27 +01:00
|
|
|
super(par1, material);
|
2013-02-18 03:46:16 +01:00
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
2013-03-29 23:19:27 +01:00
|
|
|
|
2013-02-18 03:46:16 +01:00
|
|
|
|
2013-03-29 23:19:27 +01:00
|
|
|
@SideOnly(Side.CLIENT)
|
2013-02-18 03:46:16 +01:00
|
|
|
|
2013-03-29 23:19:27 +01:00
|
|
|
/**
|
|
|
|
* Retrieves the block texture to use based on the display side. Args: iBlockAccess, x, y, z, side
|
|
|
|
*/
|
|
|
|
public Icon getBlockTexture(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
|
2013-02-18 03:46:16 +01:00
|
|
|
{
|
2013-03-29 23:19:27 +01:00
|
|
|
if(par1IBlockAccess.getBlockId(par2, par3-1, par4)==this.blockID)
|
|
|
|
{
|
|
|
|
return this.blockIcon;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return this.blockIconBottom;
|
|
|
|
}
|
2013-02-18 03:46:16 +01:00
|
|
|
}
|
2013-03-29 23:19:27 +01:00
|
|
|
public void registerIcons(IconRegister par1IconRegister)
|
2013-02-18 03:46:16 +01:00
|
|
|
{
|
2013-03-29 23:19:27 +01:00
|
|
|
this.blockIcon = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName2()+"_top");
|
|
|
|
this.blockIconBottom = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName2()+"_bottom");
|
2013-02-18 03:46:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|