package net.geforcemods.securitycraft.misc;

import java.util.Arrays;
import java.util.List;

import net.geforcemods.securitycraft.SCContent;
import net.geforcemods.securitycraft.api.IDoorActivator;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;

public class CommonDoorActivator implements IDoorActivator
{
	private List<Block> blocks = Arrays.asList(new Block[] {
			SCContent.LASER_BLOCK.get(),
			SCContent.RETINAL_SCANNER.get(),
			SCContent.KEYPAD.get(),
			SCContent.KEYCARD_READER.get(),
			SCContent.REINFORCED_STONE_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_OAK_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_SPRUCE_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_BIRCH_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_JUNGLE_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_ACACIA_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_DARK_OAK_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_CRIMSON_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_WARPED_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_POLISHED_BLACKSTONE_PRESSURE_PLATE.get(),
			SCContent.REINFORCED_STONE_BUTTON.get(),
			SCContent.REINFORCED_OAK_BUTTON.get(),
			SCContent.REINFORCED_SPRUCE_BUTTON.get(),
			SCContent.REINFORCED_BIRCH_BUTTON.get(),
			SCContent.REINFORCED_JUNGLE_BUTTON.get(),
			SCContent.REINFORCED_ACACIA_BUTTON.get(),
			SCContent.REINFORCED_DARK_OAK_BUTTON.get(),
			SCContent.REINFORCED_CRIMSON_BUTTON.get(),
			SCContent.REINFORCED_WARPED_BUTTON.get(),
			SCContent.REINFORCED_POLISHED_BLACKSTONE_BUTTON.get(),
			SCContent.REINFORCED_LEVER.get(),
			SCContent.REINFORCED_OBSERVER.get(),
			SCContent.KEY_PANEL_BLOCK.get(),
			SCContent.SECURITY_CAMERA.get()
	});

	@Override
	public boolean isPowering(Level world, BlockPos pos, BlockState state, BlockEntity te)
	{
		return state.getValue(BlockStateProperties.POWERED);
	}

	@Override
	public List<Block> getBlocks()
	{
		return blocks;
	}
}

@@ -1951,16 +1951,59 @@
 RA.get()
+,%0D%0A%09%09%09SCContent.SONIC_SECURITY_SYSTEM.get()
 %0D%0A%09%7D);%0D%0A
@@ -2049,21 +2049,21 @@
 g(Level 
-world
+level
 , BlockP
@@ -2100,17 +2100,17 @@
 kEntity 
-t
+b
 e)%0D%0A%09%7B%0D%0A

make sss a door activator