ChoiceIsMe

ExampleEntityRenderer

Aug 3rd, 2021
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package io.github.choiceisme.client.entity.model;
  2.  
  3. import io.github.choiceisme.WeatherMod;
  4. import io.github.choiceisme.common.entity.ExampleEntity;
  5. import net.minecraft.client.renderer.entity.EntityRendererManager;
  6. import net.minecraft.client.renderer.entity.MobRenderer;
  7. import net.minecraft.client.renderer.model.ModelRenderer;
  8. import net.minecraft.util.ResourceLocation;
  9.  
  10. public class ExampleEntityRenderer extends MobRenderer<ExampleEntity, ExampleEntityModel<ExampleEntity>> {
  11.  
  12. public static final ResourceLocation TEXTURE = new ResourceLocation(WeatherMod.MOD_ID, "textures/entity/example/example.png");
  13.  
  14. public ExampleEntityRenderer(EntityRendererManager manager) {
  15. super(manager, new ExampleEntityModel<>(), 0.7f);
  16. }
  17.  
  18. @Override
  19. public ResourceLocation getTextureLocation(ExampleEntity entity) {
  20. return TEXTURE;
  21. }
  22.  
  23. }
  24.  
RAW Paste Data