2016-01-12 17:23:26 +00:00
|
|
|
package WayofTime.bloodmagic.block;
|
|
|
|
|
2017-01-02 08:10:28 +00:00
|
|
|
import net.minecraft.block.state.IBlockState;
|
2016-01-12 17:23:26 +00:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
|
|
|
import net.minecraft.world.World;
|
2016-03-18 17:16:38 +00:00
|
|
|
import WayofTime.bloodmagic.BloodMagic;
|
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
|
|
|
import WayofTime.bloodmagic.tile.routing.TileMasterRoutingNode;
|
2016-01-12 17:23:26 +00:00
|
|
|
|
2017-01-02 08:10:28 +00:00
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
2016-02-06 22:36:37 +00:00
|
|
|
public class BlockMasterRoutingNode extends BlockRoutingNode
|
2016-01-12 17:23:26 +00:00
|
|
|
{
|
|
|
|
public BlockMasterRoutingNode()
|
|
|
|
{
|
2016-02-06 22:36:37 +00:00
|
|
|
super();
|
2016-01-12 17:23:26 +00:00
|
|
|
|
|
|
|
setUnlocalizedName(Constants.Mod.MODID + ".masterRouting");
|
|
|
|
setCreativeTab(BloodMagic.tabBloodMagic);
|
|
|
|
setHardness(2.0F);
|
|
|
|
setResistance(5.0F);
|
|
|
|
setHarvestLevel("pickaxe", 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-01-02 08:10:28 +00:00
|
|
|
public boolean hasTileEntity(IBlockState state) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
@Override
|
|
|
|
public TileEntity createTileEntity(World world, IBlockState state) {
|
2016-01-12 17:23:26 +00:00
|
|
|
return new TileMasterRoutingNode();
|
|
|
|
}
|
2016-01-18 02:00:48 +00:00
|
|
|
|
2017-01-02 08:10:28 +00:00
|
|
|
// @Override
|
2016-08-31 11:27:11 +00:00
|
|
|
// public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, ItemStack heldItem, EnumFacing side, float hitX, float hitY, float hitZ)
|
|
|
|
// {
|
|
|
|
// if (world.getTileEntity(pos) instanceof TileMasterRoutingNode)
|
|
|
|
// {
|
|
|
|
// player.openGui(BloodMagic.instance, Constants.Gui.MASTER_ROUTING_NODE_GUI, world, pos.getX(), pos.getY(), pos.getZ());
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// return true;
|
|
|
|
// }
|
2016-01-12 17:23:26 +00:00
|
|
|
}
|