Class RenderModel<T extends net.minecraft.world.entity.Entity,M extends net.minecraft.client.model.Model>
java.lang.Object
net.minecraft.client.renderer.entity.EntityRenderer<T>
org.cyclops.cyclopscore.client.render.model.RenderModel<T,M>
- Type Parameters:
T
- The entity typeM
- The model that will be rendered.
public abstract class RenderModel<T extends net.minecraft.world.entity.Entity,M extends net.minecraft.client.model.Model>
extends net.minecraft.client.renderer.entity.EntityRenderer<T>
A renderer for a custom model.
It will automatically take care of the texture.
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer
entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
-
Constructor Summary
ConstructorDescriptionRenderModel
(net.minecraft.client.renderer.entity.EntityRendererProvider.Context renderContext, ExtendedConfig<?, ?> config) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract M
protected net.minecraft.resources.ResourceLocation
createResourceLocation
(ExtendedConfig<?, ?> config) net.minecraft.resources.ResourceLocation
getTextureLocation
(net.minecraft.world.entity.Entity entity) Methods inherited from class net.minecraft.client.renderer.entity.EntityRenderer
getBlockLightLevel, getFont, getPackedLightCoords, getRenderOffset, getSkyLightLevel, render, renderNameTag, shouldRender, shouldShowName
-
Field Details
-
model
-
-
Constructor Details
-
RenderModel
public RenderModel(net.minecraft.client.renderer.entity.EntityRendererProvider.Context renderContext, ExtendedConfig<?, ?> config) Make a new instance.- Parameters:
renderContext
- The render contextconfig
- The config.
-
-
Method Details
-
createResourceLocation
protected net.minecraft.resources.ResourceLocation createResourceLocation(ExtendedConfig<?, ?> config) -
constructModel
-
getTextureLocation
public net.minecraft.resources.ResourceLocation getTextureLocation(net.minecraft.world.entity.Entity entity) - Specified by:
getTextureLocation
in classnet.minecraft.client.renderer.entity.EntityRenderer<T extends net.minecraft.world.entity.Entity>
-