package net.minecraft.client.renderer.entity.layers;

import net.minecraft.world.entity.Entity;
import net.minecraft.client.renderer.MultiBufferSource;
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.renderer.entity.RenderLayerParent;
import net.minecraft.client.model.TropicalFishModelB;
import net.minecraft.client.model.TropicalFishModelA;
import net.minecraft.client.model.EntityModel;
import net.minecraft.world.entity.animal.TropicalFish;

public class TropicalFishPatternLayer extends RenderLayer<TropicalFish, EntityModel<TropicalFish>> {
    private final TropicalFishModelA<TropicalFish> modelA;
    private final TropicalFishModelB<TropicalFish> modelB;
    
    public TropicalFishPatternLayer(final RenderLayerParent<TropicalFish, EntityModel<TropicalFish>> eid) {
        super(eid);
        this.modelA = new TropicalFishModelA<TropicalFish>(0.008f);
        this.modelB = new TropicalFishModelB<TropicalFish>(0.008f);
    }
    
    @Override
    public void render(final PoseStack dhl, final MultiBufferSource ebz, final int integer, final TropicalFish azh, final float float5, final float float6, final float float7, final float float8, final float float9, final float float10) {
        final EntityModel<TropicalFish> dvv12 = (EntityModel<TropicalFish>)((azh.getBaseVariant() == 0) ? this.modelA : this.modelB);
        final float[] arr13 = azh.getPatternColor();
        RenderLayer.<TropicalFish>coloredCutoutModelCopyLayerRender(((RenderLayer<T, EntityModel<TropicalFish>>)this).getParentModel(), dvv12, azh.getPatternTextureLocation(), dhl, ebz, integer, azh, float5, float6, float8, float9, float10, float7, arr13[0], arr13[1], arr13[2]);
    }
}
