Class VariableModel
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.VariableModel
- All Implemented Interfaces:
net.minecraft.client.resources.model.UnbakedModel
,net.minecraftforge.client.model.geometry.IUnbakedGeometry<VariableModel>
public class VariableModel
extends Object
implements net.minecraft.client.resources.model.UnbakedModel, net.minecraftforge.client.model.geometry.IUnbakedGeometry<VariableModel>
Model for a variant of a variable item.
-
Constructor Summary
Constructors -
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.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState transform, net.minecraft.resources.ResourceLocation location) net.minecraft.client.resources.model.BakedModel
bake
(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, 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) Collection<net.minecraft.resources.ResourceLocation>
Collection<net.minecraft.client.resources.model.Material>
getMaterials
(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) Collection<net.minecraft.client.resources.model.Material>
getMaterials
(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) void
loadSubModels
(List<net.minecraft.resources.ResourceLocation> subModels) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames
-
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
-
getMaterials
public Collection<net.minecraft.client.resources.model.Material> getMaterials(Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfacenet.minecraft.client.resources.model.UnbakedModel
-
bake
@Nullable public net.minecraft.client.resources.model.BakedModel bake(net.minecraft.client.resources.model.ModelBakery bakery, Function<net.minecraft.client.resources.model.Material, net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState transform, net.minecraft.resources.ResourceLocation location) - Specified by:
bake
in interfacenet.minecraft.client.resources.model.UnbakedModel
-
bake
public net.minecraft.client.resources.model.BakedModel bake(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, net.minecraft.client.resources.model.ModelBakery bakery, 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) - Specified by:
bake
in interfacenet.minecraftforge.client.model.geometry.IUnbakedGeometry<VariableModel>
-
getMaterials
public Collection<net.minecraft.client.resources.model.Material> getMaterials(net.minecraftforge.client.model.geometry.IGeometryBakingContext context, Function<net.minecraft.resources.ResourceLocation, net.minecraft.client.resources.model.UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getMaterials
in interfacenet.minecraftforge.client.model.geometry.IUnbakedGeometry<VariableModel>
-