2025-11-24 22:52:51 +03:00

48 lines
1.8 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.client.renderer.entity;
import net.minecraft.client.model.BreezeModel;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.client.renderer.entity.layers.BreezeEyesLayer;
import net.minecraft.client.renderer.entity.layers.BreezeWindLayer;
import net.minecraft.client.renderer.entity.state.BreezeRenderState;
import net.minecraft.resources.Identifier;
import net.minecraft.world.entity.monster.breeze.Breeze;
public class BreezeRenderer
extends MobRenderer<Breeze, BreezeRenderState, BreezeModel> {
private static final Identifier TEXTURE_LOCATION = Identifier.withDefaultNamespace("textures/entity/breeze/breeze.png");
public BreezeRenderer(EntityRendererProvider.Context context) {
super(context, new BreezeModel(context.bakeLayer(ModelLayers.BREEZE)), 0.5f);
this.addLayer(new BreezeWindLayer(this, context.getModelSet()));
this.addLayer(new BreezeEyesLayer(this, context.getModelSet()));
}
@Override
public Identifier getTextureLocation(BreezeRenderState state) {
return TEXTURE_LOCATION;
}
@Override
public BreezeRenderState createRenderState() {
return new BreezeRenderState();
}
@Override
public void extractRenderState(Breeze entity, BreezeRenderState state, float partialTicks) {
super.extractRenderState(entity, state, partialTicks);
state.idle.copyFrom(entity.idle);
state.shoot.copyFrom(entity.shoot);
state.slide.copyFrom(entity.slide);
state.slideBack.copyFrom(entity.slideBack);
state.inhale.copyFrom(entity.inhale);
state.longJump.copyFrom(entity.longJump);
}
}