Search in sources :

Example 1 with BlockModel

use of net.minecraft.client.renderer.block.model.BlockModel in project MinecraftForge by MinecraftForge.

the class SeparatePerspectiveModel method getTextures.

@Override
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<Pair<String, String>> missingTextureErrors) {
    Set<Material> textures = Sets.newHashSet();
    textures.addAll(baseModel.getMaterials(modelGetter, missingTextureErrors));
    for (BlockModel model : perspectives.values()) textures.addAll(model.getMaterials(modelGetter, missingTextureErrors));
    return textures;
}
Also used : Material(net.minecraft.client.resources.model.Material) BlockModel(net.minecraft.client.renderer.block.model.BlockModel)

Aggregations

BlockModel (net.minecraft.client.renderer.block.model.BlockModel)1 Material (net.minecraft.client.resources.model.Material)1