Class B3DLoader.ModelWrapper
java.lang.Object
net.minecraftforge.client.model.b3d.B3DLoader.ModelWrapper
- All Implemented Interfaces:
IUnbakedModel
,IForgeUnbakedModel
- Enclosing class:
- B3DLoader
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final boolean
private final boolean
private final com.google.common.collect.ImmutableSet<String>
private final B3DModel
private final ResourceLocation
private final 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<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform 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, IUnbakedModel> 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<RenderMaterial> getMaterials(Function<ResourceLocation, IUnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfaceIUnbakedModel
-
getDependencies
- Specified by:
getDependencies
in interfaceIUnbakedModel
-
bake
@Nullable public IBakedModel bake(ModelBakery bakery, Function<RenderMaterial, TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation) - Specified by:
bake
in interfaceIUnbakedModel
-
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
-