mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Yeet custom config in favor of NHLib (#53)
Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: Maya <[email protected]>
This commit is contained in:
63 files changed
+160
-992
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package binnie.extratrees.genetics;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
@@ -690,19 +689,6 @@ public enum ExtraTreeSpecies implements IAlleleTreeSpecies, IIconProvider, IGerm
|
||||
.setFertility(EnumAllele.Saplings.LOW).setMaturation(EnumAllele.Maturation.SLOWER);
|
||||
}
|
||||
|
||||
// TODO unused method?
|
||||
static ItemStack getEBXLStack(String name) {
|
||||
try {
|
||||
Class elements = Class.forName("extrabiomes.lib.Element");
|
||||
Method getElementMethod = elements.getMethod("valueOf", String.class);
|
||||
Method getItemStack = elements.getMethod("get");
|
||||
Object element = getElementMethod.invoke(null, "SAPLING_AUTUMN_YELLOW");
|
||||
return (ItemStack) getItemStack.invoke(element);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private ExtraTreeSpecies addFamily(IFruitFamily family) {
|
||||
families.add(family);
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user