tigres810

Untitled

Feb 17th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. @Override
  2. public void update() {
  3. IBlockState currentState = this.world.getBlockState(pos); // Updates current state variable
  4. EnumFacing facing = EnumFacing.SOUTH; // Gets which way block is facing
  5.  
  6. if (this.world != null)
  7. {
  8. if (!this.world.isRemote)
  9. {
  10. counttoenergy %= 7;
  11. if(counttoenergy == 1) {
  12. if(world.getBlockState(pos.offset(EnumFacing.UP)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  13.  
  14. }
  15. }else if(counttoenergy == 2) {
  16. if(world.getBlockState(pos.offset(EnumFacing.DOWN)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  17.  
  18. }
  19. }else if(counttoenergy == 2) {
  20. if(world.getBlockState(pos.offset(EnumFacing.NORTH)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
  21. BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.NORTH));
  22. if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.NORTH) == true) {
  23.  
  24. }
  25. }else if(world.getBlockState(pos.offset(EnumFacing.NORTH)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  26.  
  27. }
  28. }else if(counttoenergy == 3) {
  29. if(world.getBlockState(pos.offset(EnumFacing.SOUTH)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
  30. BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.SOUTH));
  31. if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.SOUTH) == true) {
  32.  
  33. }
  34. }else if(world.getBlockState(pos.offset(EnumFacing.SOUTH)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  35.  
  36. }
  37. }else if(counttoenergy == 4) {
  38. if(world.getBlockState(pos.offset(EnumFacing.EAST)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
  39. BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.EAST));
  40. if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.EAST) == true) {
  41.  
  42. }
  43. }else if(world.getBlockState(pos.offset(EnumFacing.SOUTH)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  44.  
  45. }
  46. }else if(counttoenergy == 5) {
  47. if(world.getBlockState(pos.offset(EnumFacing.WEST)).getBlock() == ModBlocks.FLUX_GENERATOR_BLOCK) {
  48. BlockEntityFluxGenerator te = (BlockEntityFluxGenerator)world.getBlockState(pos.offset(EnumFacing.WEST));
  49. if(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.WEST) == true) {
  50.  
  51. }
  52. }else if(world.getBlockState(pos.offset(EnumFacing.WEST)).getBlock() == ModBlocks.FLUX_PIPE_BLOCK) {
  53.  
  54. }
  55. }
  56. }
  57. }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment