2013-04-17 02:48:49 +02:00
|
|
|
package StevenDimDoors.mod_pocketDim.items;
|
2013-02-18 03:46:16 +01:00
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
2013-04-17 02:48:49 +02:00
|
|
|
import StevenDimDoors.mod_pocketDim.mod_pocketDim;
|
|
|
|
|
2013-02-18 03:46:16 +01:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
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.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemDoor;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.MathHelper;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
public class ItemChaosDoor extends itemDimDoor
|
|
|
|
{
|
|
|
|
private Material doorMaterial;
|
|
|
|
|
|
|
|
public ItemChaosDoor(int par1, Material par2Material)
|
|
|
|
{
|
|
|
|
super(par1, par2Material);
|
|
|
|
this.doorMaterial = par2Material;
|
|
|
|
this.setCreativeTab(CreativeTabs.tabTransport);
|
|
|
|
}
|
2013-03-29 23:19:27 +01:00
|
|
|
public void registerIcons(IconRegister par1IconRegister)
|
|
|
|
{
|
2013-05-08 22:29:01 +02:00
|
|
|
this.itemIcon = par1IconRegister.registerIcon(mod_pocketDim.modid + ":" + this.getUnlocalizedName());
|
2013-03-29 23:19:27 +01:00
|
|
|
|
|
|
|
}
|
2013-02-18 03:46:16 +01:00
|
|
|
@Override
|
|
|
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
par3List.add("Caution- leads to random destination");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|