Class AspectVariableModelProvider
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.AspectVariableModelProvider
- All Implemented Interfaces:
IVariableModelProvider<BakedMapVariableModelProvider<IAspect>>
public class AspectVariableModelProvider
extends Object
implements IVariableModelProvider<BakedMapVariableModelProvider<IAspect>>
Variable model provider for aspects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.client.model.IVariableModelProvider
IVariableModelProvider.BakedModelProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbakeOverlayModels
(net.minecraft.client.resources.model.ModelBaker modelBaker, 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) Load the models for this provider.Collection
<net.minecraft.resources.ResourceLocation> void
loadModels
(List<net.minecraft.resources.ResourceLocation> subModels) Load all required models for this model provider into the given model loader.
-
Constructor Details
-
AspectVariableModelProvider
public AspectVariableModelProvider()
-
-
Method Details
-
bakeOverlayModels
public BakedMapVariableModelProvider<IAspect> bakeOverlayModels(net.minecraft.client.resources.model.ModelBaker modelBaker, 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) Description copied from interface:IVariableModelProvider
Load the models for this provider.- Specified by:
bakeOverlayModels
in interfaceIVariableModelProvider<BakedMapVariableModelProvider<IAspect>>
- Parameters:
modelBaker
- The model state.spriteGetter
- The texture retriever.transform
- The model transformation.location
- The model location.- Returns:
- The baked moderl provider.
-
getDependencies
- Specified by:
getDependencies
in interfaceIVariableModelProvider<BakedMapVariableModelProvider<IAspect>>
- Returns:
- All models this provider depends on and should thus be loaded.
-
loadModels
Description copied from interface:IVariableModelProvider
Load all required models for this model provider into the given model loader.- Specified by:
loadModels
in interfaceIVariableModelProvider<BakedMapVariableModelProvider<IAspect>>
- Parameters:
subModels
- The list of sub models that can be appended to, which will be registered afterwards.
-