public static class OBJModel.MaterialLibrary
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,OBJModel.Group> |
groups |
private java.util.Map<java.lang.String,OBJModel.Material> |
materials |
private java.util.Set<java.lang.String> |
unknownMaterialCommands |
private static java.util.regex.Pattern |
WHITE_SPACE |
Constructor and Description |
---|
MaterialLibrary() |
Modifier and Type | Method and Description |
---|---|
void |
changeMaterialColor(java.lang.String name,
int color) |
java.util.Map<java.lang.String,OBJModel.Group> |
getGroups() |
java.util.List<OBJModel.Group> |
getGroupsContainingFace(OBJModel.Face f) |
OBJModel.Material |
getMaterial(java.lang.String name) |
com.google.common.collect.ImmutableList<java.lang.String> |
getMaterialNames() |
OBJModel.MaterialLibrary |
makeLibWithReplacements(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> replacements) |
void |
parseMaterials(IResourceManager manager,
java.lang.String path,
ResourceLocation from) |
private static final java.util.regex.Pattern WHITE_SPACE
private java.util.Set<java.lang.String> unknownMaterialCommands
private java.util.Map<java.lang.String,OBJModel.Material> materials
private java.util.Map<java.lang.String,OBJModel.Group> groups
public OBJModel.MaterialLibrary makeLibWithReplacements(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> replacements)
public java.util.Map<java.lang.String,OBJModel.Group> getGroups()
public java.util.List<OBJModel.Group> getGroupsContainingFace(OBJModel.Face f)
public void changeMaterialColor(java.lang.String name, int color)
public OBJModel.Material getMaterial(java.lang.String name)
public com.google.common.collect.ImmutableList<java.lang.String> getMaterialNames()
public void parseMaterials(IResourceManager manager, java.lang.String path, ResourceLocation from) throws java.io.IOException
java.io.IOException