Class B3DLoader.ModelWrapper
java.lang.Object
net.minecraftforge.client.model.b3d.B3DLoader.ModelWrapper
- All Implemented Interfaces:
UnbakedModel
- 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<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) buildTextures
(List<B3DModel.Texture> textures) 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
-
getDefaultState
-
smoothLighting
-
gui3d
-