Search in sources :

Example 1 with BlockReinforcedDoor

use of net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor in project SecurityCraft by Geforce132.

the class ItemUniversalOwnerChanger method onItemUse.

@Override
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {
    TileEntity te = world.getTileEntity(pos);
    String newOwner = stack.getDisplayName();
    if (!world.isRemote) {
        if (!stack.hasDisplayName()) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.noName"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        if (!(te instanceof IOwnable)) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.cantChange"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        if (!((IOwnable) te).getOwner().isOwner(player)) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.notOwned"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        boolean door = false;
        boolean updateTop = true;
        if (BlockUtils.getBlock(world, pos) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos) instanceof BlockScannerDoor) {
            door = true;
            ((IOwnable) world.getTileEntity(pos)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            if (BlockUtils.getBlock(world, pos.up()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.up()) instanceof BlockScannerDoor)
                ((IOwnable) world.getTileEntity(pos.up())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            else if (BlockUtils.getBlock(world, pos.down()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.down()) instanceof BlockScannerDoor) {
                ((IOwnable) world.getTileEntity(pos.down())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
                updateTop = false;
            }
        }
        if (te instanceof IOwnable)
            ((IOwnable) te).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
        world.getMinecraftServer().getPlayerList().sendPacketToAllPlayers(te.getUpdatePacket());
        if (door)
            world.getMinecraftServer().getPlayerList().sendPacketToAllPlayers(((TileEntityOwnable) world.getTileEntity(updateTop ? pos.up() : pos.down())).getUpdatePacket());
        PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.changed").replace("#", newOwner), TextFormatting.GREEN);
        return EnumActionResult.SUCCESS;
    }
    return EnumActionResult.FAIL;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) BlockScannerDoor(net.geforcemods.securitycraft.blocks.BlockScannerDoor) IOwnable(net.geforcemods.securitycraft.api.IOwnable) BlockReinforcedDoor(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor) TileEntityOwnable(net.geforcemods.securitycraft.tileentity.TileEntityOwnable)

Example 2 with BlockReinforcedDoor

use of net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor in project SecurityCraft by Geforce132.

the class ItemUniversalOwnerChanger method onItemUse.

@Override
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {
    ItemStack stack = player.getHeldItem(hand);
    TileEntity te = world.getTileEntity(pos);
    String newOwner = stack.getDisplayName();
    if (!world.isRemote) {
        if (!stack.hasDisplayName()) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.noName"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        if (!(te instanceof IOwnable)) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.cantChange"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        if (!((IOwnable) te).getOwner().isOwner(player)) {
            PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.notOwned"), TextFormatting.RED);
            return EnumActionResult.FAIL;
        }
        boolean door = false;
        boolean updateTop = true;
        if (BlockUtils.getBlock(world, pos) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos) instanceof BlockScannerDoor) {
            door = true;
            ((IOwnable) world.getTileEntity(pos)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            if (BlockUtils.getBlock(world, pos.up()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.up()) instanceof BlockScannerDoor)
                ((IOwnable) world.getTileEntity(pos.up())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            else if (BlockUtils.getBlock(world, pos.down()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.down()) instanceof BlockScannerDoor) {
                ((IOwnable) world.getTileEntity(pos.down())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
                updateTop = false;
            }
        }
        if (te instanceof IOwnable)
            ((IOwnable) te).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
        world.getMinecraftServer().getPlayerList().sendPacketToAllPlayers(te.getUpdatePacket());
        if (door)
            world.getMinecraftServer().getPlayerList().sendPacketToAllPlayers(((TileEntityOwnable) world.getTileEntity(updateTop ? pos.up() : pos.down())).getUpdatePacket());
        PlayerUtils.sendMessageToPlayer(player, ClientUtils.localize("item.universalOwnerChanger.name"), ClientUtils.localize("messages.universalOwnerChanger.changed").replace("#", newOwner), TextFormatting.GREEN);
        return EnumActionResult.SUCCESS;
    }
    return EnumActionResult.FAIL;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) BlockScannerDoor(net.geforcemods.securitycraft.blocks.BlockScannerDoor) IOwnable(net.geforcemods.securitycraft.api.IOwnable) BlockReinforcedDoor(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor) ItemStack(net.minecraft.item.ItemStack) TileEntityOwnable(net.geforcemods.securitycraft.tileentity.TileEntityOwnable)

Example 3 with BlockReinforcedDoor

use of net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor in project SecurityCraft by Geforce132.

the class ItemUniversalOwnerChanger method onItemUse.

@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float f1, float f2, float f3) {
    TileEntity te = world.getTileEntity(x, y, z);
    String newOwner = stack.getDisplayName();
    if (!world.isRemote) {
        if (!stack.hasDisplayName()) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.noName"), EnumChatFormatting.RED);
            return false;
        }
        if (!(te instanceof IOwnable)) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.cantChange"), EnumChatFormatting.RED);
            return false;
        }
        if (!((IOwnable) te).getOwner().isOwner(player)) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.notOwned"), EnumChatFormatting.RED);
            return false;
        }
        boolean door = false;
        boolean updateTop = true;
        if (world.getBlock(x, y, z) instanceof BlockReinforcedDoor || world.getBlock(x, y, z) instanceof BlockScannerDoor) {
            door = true;
            ((IOwnable) world.getTileEntity(x, y, z)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            if (world.getBlock(x, y + 1, z) instanceof BlockReinforcedDoor || world.getBlock(x, y + 1, z) instanceof BlockScannerDoor)
                ((IOwnable) world.getTileEntity(x, y + 1, z)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            else if (world.getBlock(x, y - 1, z) instanceof BlockReinforcedDoor || world.getBlock(x, y - 1, z) instanceof BlockScannerDoor) {
                ((IOwnable) world.getTileEntity(x, y - 1, z)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
                updateTop = false;
            }
        }
        if (te instanceof IOwnable)
            ((IOwnable) te).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
        MinecraftServer.getServer().getConfigurationManager().sendPacketToAllPlayers(te.getDescriptionPacket());
        if (door)
            MinecraftServer.getServer().getConfigurationManager().sendPacketToAllPlayers(((TileEntityOwnable) world.getTileEntity(x, updateTop ? y + 1 : y - 1, z)).getDescriptionPacket());
        PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.changed").replace("#", newOwner), EnumChatFormatting.GREEN);
        return true;
    }
    return false;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) BlockScannerDoor(net.geforcemods.securitycraft.blocks.BlockScannerDoor) IOwnable(net.geforcemods.securitycraft.api.IOwnable) BlockReinforcedDoor(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor) TileEntityOwnable(net.geforcemods.securitycraft.tileentity.TileEntityOwnable)

Example 4 with BlockReinforcedDoor

use of net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor in project SecurityCraft by Geforce132.

the class ItemUniversalOwnerChanger method onItemUse.

@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) {
    TileEntity te = world.getTileEntity(pos);
    String newOwner = stack.getDisplayName();
    if (!world.isRemote) {
        if (!stack.hasDisplayName()) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.noName"), EnumChatFormatting.RED);
            return false;
        }
        if (!(te instanceof IOwnable)) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.cantChange"), EnumChatFormatting.RED);
            return false;
        }
        if (!((IOwnable) te).getOwner().isOwner(player)) {
            PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.notOwned"), EnumChatFormatting.RED);
            return false;
        }
        boolean door = false;
        boolean updateTop = true;
        if (BlockUtils.getBlock(world, pos) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos) instanceof BlockScannerDoor) {
            door = true;
            ((IOwnable) world.getTileEntity(pos)).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            if (BlockUtils.getBlock(world, pos.up()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.up()) instanceof BlockScannerDoor)
                ((IOwnable) world.getTileEntity(pos.up())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
            else if (BlockUtils.getBlock(world, pos.down()) instanceof BlockReinforcedDoor || BlockUtils.getBlock(world, pos.down()) instanceof BlockScannerDoor) {
                ((IOwnable) world.getTileEntity(pos.down())).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
                updateTop = false;
            }
        }
        if (te instanceof IOwnable)
            ((IOwnable) te).getOwner().set(PlayerUtils.isPlayerOnline(newOwner) ? PlayerUtils.getPlayerFromName(newOwner).getUniqueID().toString() : "ownerUUID", newOwner);
        MinecraftServer.getServer().getConfigurationManager().sendPacketToAllPlayers(te.getDescriptionPacket());
        if (door)
            MinecraftServer.getServer().getConfigurationManager().sendPacketToAllPlayers(((TileEntityOwnable) world.getTileEntity(updateTop ? pos.up() : pos.down())).getDescriptionPacket());
        PlayerUtils.sendMessageToPlayer(player, StatCollector.translateToLocal("item.universalOwnerChanger.name"), StatCollector.translateToLocal("messages.universalOwnerChanger.changed").replace("#", newOwner), EnumChatFormatting.GREEN);
        return true;
    }
    return false;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) BlockScannerDoor(net.geforcemods.securitycraft.blocks.BlockScannerDoor) IOwnable(net.geforcemods.securitycraft.api.IOwnable) BlockReinforcedDoor(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor) TileEntityOwnable(net.geforcemods.securitycraft.tileentity.TileEntityOwnable)

Example 5 with BlockReinforcedDoor

use of net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor in project SecurityCraft by Geforce132.

the class SetupHandler method setupBlocks.

public static void setupBlocks() {
    SCContent.laserBlock = new BlockLaserBlock(Material.iron).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("laserBlock");
    SCContent.laserField = new BlockLaserField(Material.rock).setBlockUnbreakable().setResistance(1000F).setUnlocalizedName("laser");
    SCContent.keypad = new BlockKeypad(Material.iron).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("keypad");
    SCContent.retinalScanner = new BlockRetinalScanner(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("retinalScanner");
    SCContent.reinforcedDoor = new BlockReinforcedDoor(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setUnlocalizedName("ironDoorReinforced");
    SCContent.bogusLava = (BlockStaticLiquid) new BlockFakeLavaBase(Material.lava).setHardness(100.0F).setLightLevel(1.0F).setUnlocalizedName("bogusLava");
    SCContent.bogusLavaFlowing = new BlockFakeLava(Material.lava).setHardness(0.0F).setLightLevel(1.0F).setUnlocalizedName("bogusLavaFlowing");
    SCContent.bogusWater = (BlockStaticLiquid) new BlockFakeWaterBase(Material.water).setHardness(100.0F).setUnlocalizedName("bogusWater");
    SCContent.bogusWaterFlowing = new BlockFakeWater(Material.water).setHardness(0.0F).setUnlocalizedName("bogusWaterFlowing");
    SCContent.keycardReader = new BlockKeycardReader(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("keycardReader");
    SCContent.ironTrapdoor = new BlockIronTrapDoor(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedIronTrapdoor");
    SCContent.inventoryScanner = new BlockInventoryScanner(Material.rock).setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setStepSound(Block.soundTypeStone).setUnlocalizedName("inventoryScanner");
    SCContent.inventoryScannerField = new BlockInventoryScannerField(Material.glass).setBlockUnbreakable().setResistance(1000F).setUnlocalizedName("inventoryScannerField");
    SCContent.cageTrap = new BlockCageTrap(Material.rock).setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("cageTrap");
    SCContent.portableRadar = new BlockPortableRadar(Material.circuits).setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("portableRadar");
    SCContent.unbreakableIronBars = new BlockReinforcedIronBars(Material.iron, true).setCreativeTab(SecurityCraft.tabSCDecoration).setBlockUnbreakable().setResistance(1000F).setUnlocalizedName("reinforcedIronBars");
    SCContent.keypadChest = new BlockKeypadChest(0).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("keypadChest");
    SCContent.usernameLogger = new BlockLogger(Material.rock).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("usernameLogger");
    SCContent.reinforcedGlassPane = new BlockReinforcedGlassPane(Material.iron, true).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeGlass).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedGlass");
    SCContent.alarm = new BlockAlarm(Material.iron, false).setBlockUnbreakable().setResistance(1000F).setTickRandomly(true).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("alarm");
    SCContent.alarmLit = new BlockAlarm(Material.iron, true).setBlockUnbreakable().setResistance(1000F).setTickRandomly(true).setUnlocalizedName("alarmLit");
    SCContent.reinforcedStone = new BlockReinforcedStone().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStone");
    SCContent.reinforcedFencegate = new BlockReinforcedFenceGate().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedFenceGate");
    SCContent.reinforcedWoodPlanks = new BlockReinforcedWood().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedPlanks");
    SCContent.panicButton = new BlockPanicButton().setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("panicButton");
    SCContent.frame = new BlockFrame(Material.rock).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("keypadFrame");
    SCContent.keypadFurnace = new BlockKeypadFurnace(Material.iron).setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setStepSound(Block.soundTypeMetal).setUnlocalizedName("keypadFurnace");
    SCContent.securityCamera = new BlockSecurityCamera(Material.iron).setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("securityCamera");
    SCContent.reinforcedStairsOak = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsOak");
    SCContent.reinforcedStairsSpruce = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 1).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsSpruce");
    SCContent.reinforcedStairsBirch = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 2).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsBirch");
    SCContent.reinforcedStairsJungle = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 3).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsJungle");
    SCContent.reinforcedStairsAcacia = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 4).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsAcacia");
    SCContent.reinforcedStairsDarkoak = new BlockReinforcedStairs(SCContent.reinforcedWoodPlanks, 5).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsDarkoak");
    SCContent.reinforcedStairsStone = new BlockReinforcedStairs(SCContent.reinforcedStone, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsStone");
    SCContent.ironFence = new BlockIronFence(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("electrifiedIronFence");
    SCContent.reinforcedGlass = new BlockReinforcedGlass(Material.glass).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeGlass).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedGlassBlock");
    SCContent.reinforcedStainedGlass = new BlockReinforcedStainedGlass(Material.glass).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeGlass).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStainedGlass");
    SCContent.reinforcedStainedGlassPanes = new BlockReinforcedStainedGlassPanes().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeGlass).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStainedGlassPanes");
    SCContent.reinforcedDirt = new BlockReinforcedBase(Material.ground, 1, Blocks.dirt).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeGravel).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedDirt");
    SCContent.reinforcedCobblestone = new BlockReinforcedBase(Material.rock, 1, Blocks.cobblestone).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedCobblestone");
    SCContent.reinforcedStairsCobblestone = new BlockReinforcedStairs(SCContent.reinforcedCobblestone, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsCobblestone");
    SCContent.reinforcedSandstone = new BlockReinforcedSandstone().setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedSandstone");
    SCContent.reinforcedStairsSandstone = new BlockReinforcedStairs(SCContent.reinforcedSandstone, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsSandstone");
    SCContent.reinforcedWoodSlabs = new BlockReinforcedWoodSlabs(false).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedWoodSlabs");
    SCContent.reinforcedDoubleWoodSlabs = new BlockReinforcedWoodSlabs(true).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeWood).setUnlocalizedName("reinforcedDoubleWoodSlabs");
    SCContent.reinforcedStoneSlabs = new BlockReinforcedSlabs(false, Material.rock).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStoneSlabs");
    SCContent.reinforcedDoubleStoneSlabs = new BlockReinforcedSlabs(true, Material.rock).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setUnlocalizedName("reinforcedDoubleStoneSlabs");
    SCContent.reinforcedDirtSlab = new BlockReinforcedSlabs(false, Material.ground).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeGravel).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedDirtSlab");
    SCContent.reinforcedDoubleDirtSlab = new BlockReinforcedSlabs(true, Material.ground).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeGravel).setUnlocalizedName("reinforcedDoubleDirtSlab");
    SCContent.protecto = new BlockProtecto(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setLightLevel(0.5F).setCreativeTab(SecurityCraft.tabSCTechnical).setUnlocalizedName("protecto");
    SCContent.scannerDoor = new BlockScannerDoor(Material.iron).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setUnlocalizedName("scannerDoor");
    SCContent.reinforcedStoneBrick = new BlockReinforcedStoneBrick().setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStoneBrick");
    SCContent.reinforcedStairsStoneBrick = new BlockReinforcedStairs(SCContent.reinforcedStoneBrick, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsStoneBrick");
    SCContent.reinforcedMossyCobblestone = new BlockReinforcedBase(Material.rock, 1, Blocks.mossy_cobblestone).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedMossyCobblestone");
    SCContent.reinforcedBrick = new BlockReinforcedBase(Material.rock, 1, Blocks.brick_block).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedBrick");
    SCContent.reinforcedStairsBrick = new BlockReinforcedStairs(SCContent.reinforcedBrick, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsBrick");
    SCContent.reinforcedNetherBrick = new BlockReinforcedBase(Material.rock, 1, Blocks.nether_brick).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedNetherBrick");
    SCContent.reinforcedStairsNetherBrick = new BlockReinforcedStairs(SCContent.reinforcedNetherBrick, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsNetherBrick");
    SCContent.reinforcedHardenedClay = new BlockReinforcedBase(Material.rock, 1, Blocks.hardened_clay).setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedHardenedClay");
    SCContent.reinforcedStainedHardenedClay = new BlockReinforcedStainedHardenedClay().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStainedHardenedClay");
    SCContent.reinforcedOldLogs = new BlockReinforcedOldLog().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedLogs");
    SCContent.reinforcedNewLogs = new BlockReinforcedNewLog().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeWood).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedLogs2");
    SCContent.reinforcedMetals = new BlockReinforcedMetals().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeMetal).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedMetals");
    SCContent.reinforcedCompressedBlocks = new BlockReinforcedCompressedBlocks().setBlockUnbreakable().setResistance(1000F).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedCompressedBlocks");
    SCContent.reinforcedWool = new BlockReinforcedWool().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypeCloth).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedWool");
    SCContent.reinforcedQuartz = new BlockReinforcedQuartz().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedQuartz");
    SCContent.reinforcedStairsQuartz = new BlockReinforcedStairs(SCContent.reinforcedQuartz, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsQuartz");
    SCContent.reinforcedPrismarine = new BlockReinforcedPrismarine().setBlockUnbreakable().setResistance(1000F).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedPrismarine");
    SCContent.reinforcedRedSandstone = new BlockReinforcedRedSandstone().setBlockUnbreakable().setStepSound(Block.soundTypePiston).setResistance(1000F).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedRedSandstone");
    SCContent.reinforcedStairsRedSandstone = new BlockReinforcedStairs(SCContent.reinforcedRedSandstone, 0).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypePiston).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStairsRedSandstone");
    SCContent.reinforcedStoneSlabs2 = new BlockReinforcedSlabs2(false, Material.rock).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setCreativeTab(SecurityCraft.tabSCDecoration).setUnlocalizedName("reinforcedStoneSlabs2");
    SCContent.reinforcedDoubleStoneSlabs2 = new BlockReinforcedSlabs2(true, Material.rock).setBlockUnbreakable().setResistance(1000).setStepSound(Block.soundTypeStone).setUnlocalizedName("reinforcedDoubleStoneSlabs2");
}
Also used : BlockReinforcedSandstone(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedSandstone) BlockReinforcedSlabs2(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedSlabs2) BlockFakeLavaBase(net.geforcemods.securitycraft.blocks.BlockFakeLavaBase) BlockPortableRadar(net.geforcemods.securitycraft.blocks.BlockPortableRadar) BlockIronTrapDoor(net.geforcemods.securitycraft.blocks.BlockIronTrapDoor) BlockReinforcedStairs(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStairs) BlockReinforcedStainedHardenedClay(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStainedHardenedClay) BlockKeypad(net.geforcemods.securitycraft.blocks.BlockKeypad) BlockReinforcedOldLog(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedOldLog) BlockLaserBlock(net.geforcemods.securitycraft.blocks.BlockLaserBlock) BlockFakeLava(net.geforcemods.securitycraft.blocks.BlockFakeLava) BlockCageTrap(net.geforcemods.securitycraft.blocks.BlockCageTrap) BlockFrame(net.geforcemods.securitycraft.blocks.BlockFrame) BlockIronFence(net.geforcemods.securitycraft.blocks.BlockIronFence) BlockReinforcedGlass(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedGlass) BlockFakeWaterBase(net.geforcemods.securitycraft.blocks.BlockFakeWaterBase) BlockInventoryScanner(net.geforcemods.securitycraft.blocks.BlockInventoryScanner) BlockReinforcedQuartz(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedQuartz) BlockAlarm(net.geforcemods.securitycraft.blocks.BlockAlarm) BlockScannerDoor(net.geforcemods.securitycraft.blocks.BlockScannerDoor) BlockReinforcedNewLog(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedNewLog) BlockLaserField(net.geforcemods.securitycraft.blocks.BlockLaserField) BlockLogger(net.geforcemods.securitycraft.blocks.BlockLogger) BlockReinforcedMetals(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedMetals) BlockKeypadChest(net.geforcemods.securitycraft.blocks.BlockKeypadChest) BlockRetinalScanner(net.geforcemods.securitycraft.blocks.BlockRetinalScanner) BlockReinforcedCompressedBlocks(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedCompressedBlocks) BlockReinforcedFenceGate(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedFenceGate) BlockKeypadFurnace(net.geforcemods.securitycraft.blocks.BlockKeypadFurnace) BlockProtecto(net.geforcemods.securitycraft.blocks.BlockProtecto) BlockReinforcedStainedGlass(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStainedGlass) BlockReinforcedWool(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedWool) BlockReinforcedPrismarine(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedPrismarine) BlockReinforcedWood(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedWood) BlockReinforcedDoor(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor) BlockSecurityCamera(net.geforcemods.securitycraft.blocks.BlockSecurityCamera) BlockReinforcedStone(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStone) BlockFakeWater(net.geforcemods.securitycraft.blocks.BlockFakeWater) BlockInventoryScannerField(net.geforcemods.securitycraft.blocks.BlockInventoryScannerField) BlockReinforcedWoodSlabs(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedWoodSlabs) BlockReinforcedStoneBrick(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStoneBrick) BlockReinforcedIronBars(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedIronBars) BlockReinforcedGlassPane(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedGlassPane) BlockReinforcedSlabs(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedSlabs) BlockReinforcedRedSandstone(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedRedSandstone) BlockReinforcedBase(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedBase) BlockPanicButton(net.geforcemods.securitycraft.blocks.BlockPanicButton) BlockKeycardReader(net.geforcemods.securitycraft.blocks.BlockKeycardReader) BlockReinforcedStainedGlassPanes(net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedStainedGlassPanes)

Aggregations

BlockScannerDoor (net.geforcemods.securitycraft.blocks.BlockScannerDoor)5 BlockReinforcedDoor (net.geforcemods.securitycraft.blocks.reinforced.BlockReinforcedDoor)5 IOwnable (net.geforcemods.securitycraft.api.IOwnable)4 TileEntityOwnable (net.geforcemods.securitycraft.tileentity.TileEntityOwnable)4 TileEntity (net.minecraft.tileentity.TileEntity)4 BlockAlarm (net.geforcemods.securitycraft.blocks.BlockAlarm)1 BlockCageTrap (net.geforcemods.securitycraft.blocks.BlockCageTrap)1 BlockFakeLava (net.geforcemods.securitycraft.blocks.BlockFakeLava)1 BlockFakeLavaBase (net.geforcemods.securitycraft.blocks.BlockFakeLavaBase)1 BlockFakeWater (net.geforcemods.securitycraft.blocks.BlockFakeWater)1 BlockFakeWaterBase (net.geforcemods.securitycraft.blocks.BlockFakeWaterBase)1 BlockFrame (net.geforcemods.securitycraft.blocks.BlockFrame)1 BlockInventoryScanner (net.geforcemods.securitycraft.blocks.BlockInventoryScanner)1 BlockInventoryScannerField (net.geforcemods.securitycraft.blocks.BlockInventoryScannerField)1 BlockIronFence (net.geforcemods.securitycraft.blocks.BlockIronFence)1 BlockIronTrapDoor (net.geforcemods.securitycraft.blocks.BlockIronTrapDoor)1 BlockKeycardReader (net.geforcemods.securitycraft.blocks.BlockKeycardReader)1 BlockKeypad (net.geforcemods.securitycraft.blocks.BlockKeypad)1 BlockKeypadChest (net.geforcemods.securitycraft.blocks.BlockKeypadChest)1 BlockKeypadFurnace (net.geforcemods.securitycraft.blocks.BlockKeypadFurnace)1