Class VariableModel
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.VariableModel
- All Implemented Interfaces:
net.minecraft.client.resources.model.UnbakedModel
,net.neoforged.neoforge.client.model.geometry.IUnbakedGeometry<VariableModel>
public class VariableModel
extends Object
implements net.minecraft.client.resources.model.UnbakedModel, net.neoforged.neoforge.client.model.geometry.IUnbakedGeometry<VariableModel>
Model for a variant of a variable item.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAdditionalModels
(com.google.common.collect.ImmutableSet.Builder<net.minecraft.resources.ResourceLocation> builder) net.minecraft.client.resources.model.BakedModel
bake
(net.minecraft.client.resources.model.ModelBaker bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState) net.minecraft.client.resources.model.BakedModel
bake
(net.neoforged.neoforge.client.model.geometry.IGeometryBakingContext context, 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 modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides) Collection
<net.minecraft.resources.ResourceLocation> void
loadSubModels
(List<net.minecraft.resources.ResourceLocation> subModels) void
resolveParents
(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> resolver) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames, resolveParents
-
Constructor Details
-
VariableModel
public VariableModel(net.minecraft.client.renderer.block.model.BlockModel base)
-
-
Method Details
-
loadSubModels
-
addAdditionalModels
public static void addAdditionalModels(com.google.common.collect.ImmutableSet.Builder<net.minecraft.resources.ResourceLocation> builder) -
getDependencies
- Specified by:
getDependencies
in interfacenet.minecraft.client.resources.model.UnbakedModel
-
resolveParents
public void resolveParents(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> resolver) - Specified by:
resolveParents
in interfacenet.minecraft.client.resources.model.UnbakedModel
-
bake
public net.minecraft.client.resources.model.BakedModel bake(net.neoforged.neoforge.client.model.geometry.IGeometryBakingContext context, 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 modelState, net.minecraft.client.renderer.block.model.ItemOverrides overrides) - Specified by:
bake
in interfacenet.neoforged.neoforge.client.model.geometry.IUnbakedGeometry<VariableModel>
-
bake
@Nullable public net.minecraft.client.resources.model.BakedModel bake(net.minecraft.client.resources.model.ModelBaker bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelState) - Specified by:
bake
in interfacenet.minecraft.client.resources.model.UnbakedModel
-