Class SingleVariableModelProvider
java.lang.Object
org.cyclops.integrateddynamics.core.client.model.SingleVariableModelProvider
- All Implemented Interfaces:
IVariableModelProvider<BakedSingleVariableModelProvider>
public class SingleVariableModelProvider
extends Object
implements IVariableModelProvider<BakedSingleVariableModelProvider>
Variable model provider for a single model.
-
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
-
SingleVariableModelProvider
public SingleVariableModelProvider(net.minecraft.resources.ResourceLocation model)
-
-
Method Details
-
bakeOverlayModels
public BakedSingleVariableModelProvider 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<BakedSingleVariableModelProvider>
- 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<BakedSingleVariableModelProvider>
- 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<BakedSingleVariableModelProvider>
- Parameters:
subModels
- The list of sub models that can be appended to, which will be registered afterwards.
-