2013-06-01 21:43:56 -04:00
|
|
|
package StevenDimDoors.mod_pocketDim.blocks;
|
2013-02-17 21:46:16 -05:00
|
|
|
|
|
|
|
import net.minecraft.block.material.Material;
|
2013-09-06 02:07:47 -04:00
|
|
|
import net.minecraft.item.Item;
|
2013-02-17 21:46:16 -05:00
|
|
|
import net.minecraft.world.World;
|
2013-08-29 02:14:24 -04:00
|
|
|
import StevenDimDoors.mod_pocketDim.DDProperties;
|
2013-09-02 11:47:12 -04:00
|
|
|
import StevenDimDoors.mod_pocketDim.core.LinkTypes;
|
2013-08-29 02:14:24 -04:00
|
|
|
import StevenDimDoors.mod_pocketDim.core.NewDimData;
|
|
|
|
import StevenDimDoors.mod_pocketDim.core.PocketManager;
|
2013-02-17 21:46:16 -05:00
|
|
|
|
2013-09-06 20:57:00 -04:00
|
|
|
public class UnstableDoor extends BaseDimDoor
|
2013-02-17 21:46:16 -05:00
|
|
|
{
|
2013-09-06 20:57:00 -04:00
|
|
|
public UnstableDoor(int blockID, Material material, DDProperties properties)
|
2013-02-17 21:46:16 -05:00
|
|
|
{
|
2013-09-06 20:57:00 -04:00
|
|
|
super(blockID, material, properties);
|
2013-08-29 02:14:24 -04:00
|
|
|
}
|
2013-02-17 21:46:16 -05:00
|
|
|
|
2013-08-29 02:14:24 -04:00
|
|
|
@Override
|
2013-09-06 02:07:47 -04:00
|
|
|
public void placeDimDoor(World world, int x, int y, int z)
|
2013-08-29 02:14:24 -04:00
|
|
|
{
|
|
|
|
if (!world.isRemote && world.getBlockId(x, y - 1, z) == this.blockID)
|
|
|
|
{
|
|
|
|
NewDimData dimension = PocketManager.getDimensionData(world);
|
2013-09-02 11:47:12 -04:00
|
|
|
dimension.createLink(x, y, z, LinkTypes.RANDOM);
|
2013-08-29 02:14:24 -04:00
|
|
|
}
|
|
|
|
}
|
2013-09-06 02:07:47 -04:00
|
|
|
@Override
|
|
|
|
public int getDrops()
|
|
|
|
{
|
|
|
|
return Item.doorIron.itemID;
|
|
|
|
}
|
2013-02-17 21:46:16 -05:00
|
|
|
}
|