API cleanups

This commit is contained in:
Vincent Lee committed 2016-04-03 23:26:20 -05:00
1 parent 53ce019cf5
commit ea6484211b
59 files changed
+204 -244

No files matched your search

@@ -11,6 +11,7 @@
package vazkii.botania.api.item;
import net.minecraft.item.ItemStack;
import java.util.HashMap;
public interface IFloatingFlower {
@@ -35,6 +36,8 @@ public interface IFloatingFlower {
public static final IslandType INFUSED = new IslandType("INFUSED");
public static final IslandType MUTATED = new IslandType("MUTATED");
private final String typeName;
/**
* Instantiates and registers a new floating flower island type
* Note that you need to register the model for this island type, see BotaniaAPIClient
@@ -46,8 +49,6 @@ public interface IFloatingFlower {
registry.put(name, this);
}
public final String typeName;
public static IslandType ofType(String typeStr) {
IslandType type = registry.get(typeStr);
return type == null ? GRASS : type;