Migrate botaniaAPI and botaniaAPIClient to interface. Rework IMC to not rely on API.

This commit is contained in:
Vincent Lee committed 2020-04-03 18:58:50 -05:00
1 parent b14a964b1e
commit 8e4666918f
65 files changed
+555 -500

No files matched your search

@@ -70,7 +70,7 @@ public class FloatingFlowerModel implements IModelGeometry<FloatingFlowerModel>
@Override
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, IUnbakedModel> modelGetter, Set<Pair<String, String>> missingTextureErrors) {
Set<Material> ret = new HashSet<>();
for (Map.Entry<IFloatingFlower.IslandType, ResourceLocation> e : BotaniaAPIClient.getRegisteredIslandTypeModels().entrySet()) {
for (Map.Entry<IFloatingFlower.IslandType, ResourceLocation> e : BotaniaAPIClient.instance().getRegisteredIslandTypeModels().entrySet()) {
IUnbakedModel unbakedIsland = modelGetter.apply(e.getValue());
ret.addAll(unbakedIsland.getTextureDependencies(modelGetter, missingTextureErrors));
unbakedIslands.put(e.getKey(), unbakedIsland);