tigres810

Untitled

Feb 17th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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. }
  38. }
  39. System.out.println(BlockEntityFluxPipe.isSideConnectable1(world, pos, EnumFacing.NORTH));
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment