mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Migrate botaniaAPI and botaniaAPIClient to interface. Rework IMC to not rely on API.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user