Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void update() {
- IBlockState currentState = this.world.getBlockState(pos); // Updates current state variable
- EnumFacing facing = EnumFacing.SOUTH; // Gets which way block is facing
- if (this.world != null)
- {
- if (!this.world.isRemote)
- {
- counttoenergy %= 7;
- if(counttoenergy == 1) {
- if(world.getBlockState(pos.offset(EnumFacing.UP)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
- }
- }else if(counttoenergy == 2) {
- if(world.getBlockState(pos.offset(EnumFacing.DOWN)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
- }
- }else if(counttoenergy == 2) {
- if(world.getBlockState(pos.offset(EnumFacing.NORTH)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
- BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.NORTH));
- if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.NORTH) == true) {
- }
- }else if(world.getBlockState(pos.offset(EnumFacing.NORTH)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
- }
- }else if(counttoenergy == 3) {
- if(world.getBlockState(pos.offset(EnumFacing.SOUTH)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
- BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.SOUTH));
- if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.SOUTH) == true) {
- }
- }else if(world.getBlockState(pos.offset(EnumFacing.SOUTH)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
- }
- }
- }
- System.out.println(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.NORTH));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment