Class B3DLoader.ModelWrapper
java.lang.Object
net.minecraftforge.client.model.b3d.B3DLoader.ModelWrapper
- All Implemented Interfaces:
UnbakedModel
,IForgeUnbakedModel
- Enclosing class:
- B3DLoader
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private com.google.common.collect.ImmutableSet<String>
private B3DModel
private ResourceLocation
private boolean
-
Constructor Summary
ConstructorDescriptionModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey)
ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey, com.google.common.collect.ImmutableMap<String,String> textures)
-
Method Summary
Modifier and TypeMethodDescriptionbake(ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation)
buildTextures(List<B3DModel.Texture> textures)
Retrieves information about an animation clip in the model.private static String
getLocation(String path)
getMaterials(Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
gui3d(boolean value)
smoothLighting(boolean value)
-
Field Details
-
modelLocation
-
model
-
meshes
-
textures
-
smooth
private final boolean smooth -
gui3d
private final boolean gui3d -
isSideLit
private final boolean isSideLit -
defaultKey
private final int defaultKey
-
-
Constructor Details
-
ModelWrapper
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey) -
ModelWrapper
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey, com.google.common.collect.ImmutableMap<String,String> textures)
-
-
Method Details
-
buildTextures
private static com.google.common.collect.ImmutableMap<String,String> buildTextures(List<B3DModel.Texture> textures) -
getLocation
-
getMaterials
public Collection<Material> getMaterials(Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)- Specified by:
getMaterials
in interfaceUnbakedModel
-
getDependencies
- Specified by:
getDependencies
in interfaceUnbakedModel
-
bake
@Nullable public BakedModel bake(ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation)- Specified by:
bake
in interfaceUnbakedModel
-
retexture
public B3DLoader.ModelWrapper retexture(com.google.common.collect.ImmutableMap<String,String> textures) -
process
-
getClip
Description copied from interface:IForgeUnbakedModel
Retrieves information about an animation clip in the model.- Specified by:
getClip
in interfaceIForgeUnbakedModel
- Parameters:
name
- The clip name- Returns:
-
getDefaultState
-
smoothLighting
-
gui3d
-