Nessiesson

Untitled

May 17th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class bir extends Random
  6. {
  7. private int a;
  8.  
  9. public bir()
  10. {
  11. }
  12.  
  13. public bir(long p_i1080_1_)
  14. {
  15. super(p_i1080_1_);
  16. }
  17.  
  18. public void a(int p_a_1_)
  19. {
  20. for (int i = 0; i < p_a_1_; ++i)
  21. {
  22. this.next(1);
  23. }
  24. }
  25.  
  26. protected int next(int p_next_1_)
  27. {
  28. ++this.a;
  29. return super.next(p_next_1_);
  30. }
  31.  
  32. public long a(int p_a_1_, int p_a_2_)
  33. {
  34. long i = (long)p_a_1_ * 341873128712L + (long)p_a_2_ * 132897987541L;
  35. this.setSeed(i);
  36. return i;
  37. }
  38.  
  39. public long a(long p_a_1_, int p_a_3_, int p_a_4_)
  40. {
  41. this.setSeed(p_a_1_);
  42. long i = this.nextLong() | 1L;
  43. long j = this.nextLong() | 1L;
  44. long k = (long)p_a_3_ * i + (long)p_a_4_ * j ^ p_a_1_;
  45. this.setSeed(k);
  46. return k;
  47. }
  48.  
  49. public long b(long p_b_1_, int p_b_3_, int p_b_4_)
  50. {
  51. long i = p_b_1_ + (long)p_b_3_ + (long)(10000 * p_b_4_);
  52. this.setSeed(i);
  53. return i;
  54. }
  55.  
  56. public long c(long p_c_1_, int p_c_3_, int p_c_4_)
  57. {
  58. this.setSeed(p_c_1_);
  59. long i = this.nextLong();
  60. long j = this.nextLong();
  61. long k = (long)p_c_3_ * i ^ (long)p_c_4_ * j ^ p_c_1_;
  62. this.setSeed(k);
  63. return k;
  64. }
  65.  
  66. public long a(long p_a_1_, int p_a_3_, int p_a_4_, int p_a_5_)
  67. {
  68. long i = (long)p_a_3_ * 341873128712L + (long)p_a_4_ * 132897987541L + p_a_1_ + (long)p_a_5_;
  69. this.setSeed(i);
  70. return i;
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment