9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00
This commit is contained in:
Daniel Mills
2021-08-02 01:14:52 -04:00
parent ca035f9447
commit eb82b44726
51 changed files with 287 additions and 524 deletions

View File

@@ -625,14 +625,11 @@ public class KList<T> extends ArrayList<T> implements List<T> {
return get(M.irand(0, last()));
}
public KList<T> popRandom(RNG rng, int c)
{
public KList<T> popRandom(RNG rng, int c) {
KList<T> m = new KList<>();
for(int i = 0; i < c; i++)
{
if(isEmpty())
{
for (int i = 0; i < c; i++) {
if (isEmpty()) {
break;
}

View File

@@ -30,7 +30,6 @@ public class BlockPosition {
private int y;
private int z;
//Magic numbers
private static final int m1 = 1 + MathHelper.f(MathHelper.c(30000000));
private static final int m2 = 64 - (m1 * 2);
@@ -39,7 +38,6 @@ public class BlockPosition {
private static final long m5 = (1L << m2) - 1L;
private static final long m6 = (1L << m1) - 1L;
public BlockPosition(int x, int y, int z) {
this.x = x;
this.y = y;