Class B3DLoader.ModelWrapper
java.lang.Object
net.minecraftforge.client.model.b3d.B3DLoader.ModelWrapper
- All Implemented Interfaces:
UnbakedModel,IForgeUnbakedModel
- Enclosing class:
- B3DLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanprivate booleanprivate com.google.common.collect.ImmutableSet<String>private B3DModelprivate ResourceLocationprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionModelWrapper(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 StringgetLocation(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:
getMaterialsin interfaceUnbakedModel
-
getDependencies
- Specified by:
getDependenciesin interfaceUnbakedModel
-
bake
@Nullable public BakedModel bake(ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation)- Specified by:
bakein interfaceUnbakedModel
-
retexture
public B3DLoader.ModelWrapper retexture(com.google.common.collect.ImmutableMap<String,String> textures) -
process
-
getClip
Description copied from interface:IForgeUnbakedModelRetrieves information about an animation clip in the model.- Specified by:
getClipin interfaceIForgeUnbakedModel- Parameters:
name- The clip name- Returns:
-
getDefaultState
-
smoothLighting
-
gui3d
-