mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-02 13:56:40 +00:00
Biome implosion
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user