Class MultipartObjModel
java.lang.Object
de.mrjulsen.paw.fabric.client.model.loaders.MultipartObjModel
- All Implemented Interfaces:
io.github.fabricators_of_create.porting_lib.models.geometry.IUnbakedGeometry<MultipartObjModel>,net.minecraft.client.resources.model.UnbakedModel
public class MultipartObjModel
extends Object
implements io.github.fabricators_of_create.porting_lib.models.geometry.IUnbakedGeometry<MultipartObjModel>, net.minecraft.client.resources.model.UnbakedModel
A model loaded from an OBJ file.
Supports positions, texture coordinates, normals and colors. The material library
has support for numerous features, including support for ResourceLocation textures (non-standard).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassstatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal booleanstatic final booleanfinal booleanfinal net.minecraft.resources.ResourceLocationfinal @Nullable Stringfinal boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(String name, MultipartObjModel.ModelGroup part) net.minecraft.client.resources.model.BakedModelbake(net.minecraft.client.renderer.block.model.BlockModel owner, net.minecraft.client.resources.model.ModelBaker baker, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelTransform, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation, boolean isGui3d) Bake from custom block model geometry@Nullable net.minecraft.client.resources.model.BakedModelbake(@NotNull net.minecraft.client.resources.model.ModelBaker baker, @NotNull Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, @NotNull net.minecraft.client.resources.model.ModelState modelTransform, @NotNull net.minecraft.resources.ResourceLocation modelLocation) Bake from a standalone model@NotNull Collection<net.minecraft.resources.ResourceLocation> Collection<? extends MultipartObjModel.ModelObject> getParts()voidresolveParents(@NotNull Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> function) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.fabricators_of_create.porting_lib.models.geometry.IUnbakedGeometry
resolveParents
-
Field Details
-
ENABLED
public static final boolean ENABLED -
automaticCulling
public final boolean automaticCulling -
shadeQuads
public final boolean shadeQuads -
flipV
public final boolean flipV -
emissiveAmbient
public final boolean emissiveAmbient -
mtlOverride
-
modelLocation
public final net.minecraft.resources.ResourceLocation modelLocation
-
-
Constructor Details
-
MultipartObjModel
-
-
Method Details
-
addPart
-
getParts
-
getRootComponentNames
-
bake
public net.minecraft.client.resources.model.BakedModel bake(net.minecraft.client.renderer.block.model.BlockModel owner, net.minecraft.client.resources.model.ModelBaker baker, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelTransform, net.minecraft.client.renderer.block.model.ItemOverrides overrides, net.minecraft.resources.ResourceLocation modelLocation, boolean isGui3d) Bake from custom block model geometry- Specified by:
bakein interfaceio.github.fabricators_of_create.porting_lib.models.geometry.IUnbakedGeometry<MultipartObjModel>
-
bake
@Nullable public @Nullable net.minecraft.client.resources.model.BakedModel bake(@NotNull @NotNull net.minecraft.client.resources.model.ModelBaker baker, @NotNull @NotNull Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, @NotNull @NotNull net.minecraft.client.resources.model.ModelState modelTransform, @NotNull @NotNull net.minecraft.resources.ResourceLocation modelLocation) Bake from a standalone model- Specified by:
bakein interfacenet.minecraft.client.resources.model.UnbakedModel
-
getConfigurableComponentNames
- Specified by:
getConfigurableComponentNamesin interfaceio.github.fabricators_of_create.porting_lib.models.geometry.IUnbakedGeometry<MultipartObjModel>
-
getDependencies
- Specified by:
getDependenciesin interfacenet.minecraft.client.resources.model.UnbakedModel
-
resolveParents
public void resolveParents(@NotNull @NotNull Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> function) - Specified by:
resolveParentsin interfacenet.minecraft.client.resources.model.UnbakedModel
-