Guest User

EntityRender

a guest
Apr 18th, 2020
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package com.lordloss.tutorial.client.entity.render;
  2.  
  3. import com.lordloss.tutorial.Tutorial;
  4. import com.lordloss.tutorial.client.entity.model.ExampleEntityModel;
  5. import com.lordloss.tutorial.entities.ExampleEntity;
  6. import net.minecraft.client.renderer.entity.EntityRendererManager;
  7. import net.minecraft.client.renderer.entity.MobRenderer;
  8. import net.minecraft.client.renderer.entity.SheepRenderer;
  9. import net.minecraft.entity.passive.SheepEntity;
  10. import net.minecraft.util.ResourceLocation;
  11.  
  12. public class ExampleEntityRender extends MobRenderer<ExampleEntity, ExampleEntityModel<ExampleEntity>> {
  13.  
  14.     protected static final ResourceLocation TEXTURE = new ResourceLocation(Tutorial.MOD_ID, "textures/entity/example_entity.png");
  15.  
  16.     public ExampleEntityRender(EntityRendererManager renderManagerIn) {
  17.         super(renderManagerIn, new ExampleEntityModel<ExampleEntity>(), 0.2f);
  18.     }
  19.  
  20.     @Override
  21.     public ResourceLocation getEntityTexture(ExampleEntity entity) {
  22.         return TEXTURE;
  23.     }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment