Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mysticsbiomes.client.entity.render;
- import com.mysticsbiomes.client.entity.Butterfly;
- import com.mysticsbiomes.client.entity.model.ButterflyModel;
- import com.mysticsbiomes.core.MysticsBiomes;
- import net.minecraft.client.model.geom.ModelLayerLocation;
- import net.minecraft.client.renderer.entity.EntityRendererProvider;
- import net.minecraft.client.renderer.entity.MobRenderer;
- import net.minecraft.resources.ResourceLocation;
- import net.minecraftforge.api.distmarker.Dist;
- import net.minecraftforge.api.distmarker.OnlyIn;
- @OnlyIn(Dist.CLIENT)
- public class ButterflyRenderer extends MobRenderer<Butterfly, ButterflyModel<Butterfly>> {
- private static final ResourceLocation ORANGE_BUTTERFLY = new ResourceLocation(MysticsBiomes.modId, "textures/entity/butterfly/butterfly.png");
- public static final ModelLayerLocation BUTTERFLY = new ModelLayerLocation(new ResourceLocation(MysticsBiomes.modId, "butterfly"), "main");
- public ButterflyRenderer(EntityRendererProvider.Context context) {
- super(context, new ButterflyModel<>(context.bakeLayer(BUTTERFLY)), 0.4F);
- }
- public ResourceLocation getTextureLocation(Butterfly butterfly) {
- return ORANGE_BUTTERFLY;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement