9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2026-01-02 13:56:40 +00:00

Biome implosion

This commit is contained in:
Daniel Mills
2020-10-25 15:57:27 -04:00
parent 9f3e5fea38
commit 460be03a20
8 changed files with 216 additions and 11 deletions

View File

@@ -1,5 +1,11 @@
package com.volmit.iris.util;
public interface IRare {
public interface IRare
{
public int getRarity();
public static int get(Object v)
{
return v instanceof IRare ? ((IRare) v).getRarity() : 1;
}
}

View File

@@ -51,6 +51,14 @@ public class KList<T> extends ArrayList<T> implements List<T>
return this;
}
public void addMultiple(T t, int c)
{
for(int i = 0; i < c; i++)
{
add(t);
}
}
private KList<T> add(Enumeration<T> e)
{
while(e.hasMoreElements())
@@ -688,7 +696,7 @@ public class KList<T> extends ArrayList<T> implements List<T>
add(t);
return true;
}
return false;
}