Interface IVariableModelProvider<B extends IVariableModelProvider.BakedModelProvider>
- Type Parameters:
B- The type of baked model provider.
- All Known Implementing Classes:
AspectVariableModelProvider,SingleVariableModelProvider,ValueTypeVariableModelProvider
public interface IVariableModelProvider<B extends IVariableModelProvider.BakedModelProvider>
A provider of variable overlay models.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvider for baked models. -
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> voidloadModels(List<net.minecraft.resources.ResourceLocation> subModels) Load all required models for this model provider into the given model loader.
-
Method Details
-
bakeOverlayModels
B 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) Load the models for this provider.- Parameters:
modelBaker- The model state.spriteGetter- The texture retriever.transform- The model transformation.location- The model location.- Returns:
- The baked moderl provider.
-
getDependencies
Collection<net.minecraft.resources.ResourceLocation> getDependencies()- Returns:
- All models this provider depends on and should thus be loaded.
-
loadModels
Load all required models for this model provider into the given model loader.- Parameters:
subModels- The list of sub models that can be appended to, which will be registered afterwards.
-