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 type
M - 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
    Modifier and Type
    Field
    Description
    protected M
     

    Fields inherited from class net.minecraft.client.renderer.entity.EntityRenderer

    entityRenderDispatcher, NAMETAG_SCALE, shadowRadius, shadowStrength
  • Constructor Summary

    Constructors
    Constructor
    Description
    RenderModel(net.minecraft.client.renderer.entity.EntityRendererProvider.Context renderContext, ExtendedConfig<?,?> config)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract M
     
    protected net.minecraft.resources.ResourceLocation
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • model

      protected M extends net.minecraft.client.model.Model model
  • Constructor Details

    • RenderModel

      public RenderModel(net.minecraft.client.renderer.entity.EntityRendererProvider.Context renderContext, ExtendedConfig<?,?> config)
      Make a new instance.
      Parameters:
      renderContext - The render context
      config - The config.
  • Method Details

    • createResourceLocation

      protected net.minecraft.resources.ResourceLocation createResourceLocation(ExtendedConfig<?,?> config)
    • constructModel

      protected abstract M constructModel()
    • getTextureLocation

      public net.minecraft.resources.ResourceLocation getTextureLocation(net.minecraft.world.entity.Entity entity)
      Specified by:
      getTextureLocation in class net.minecraft.client.renderer.entity.EntityRenderer<T extends net.minecraft.world.entity.Entity>