/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.entity.layers; import net.minecraft.client.model.BeeStingerModel; import net.minecraft.client.model.PlayerModel; import net.minecraft.client.model.geom.ModelLayers; import net.minecraft.client.renderer.entity.EntityRendererProvider; import net.minecraft.client.renderer.entity.LivingEntityRenderer; import net.minecraft.client.renderer.entity.layers.StuckInBodyLayer; import net.minecraft.client.renderer.entity.state.AvatarRenderState; import net.minecraft.resources.Identifier; import net.minecraft.util.Unit; public class BeeStingerLayer extends StuckInBodyLayer { private static final Identifier BEE_STINGER_LOCATION = Identifier.withDefaultNamespace("textures/entity/bee/bee_stinger.png"); public BeeStingerLayer(LivingEntityRenderer renderer, EntityRendererProvider.Context context) { super(renderer, new BeeStingerModel(context.bakeLayer(ModelLayers.BEE_STINGER)), Unit.INSTANCE, BEE_STINGER_LOCATION, StuckInBodyLayer.PlacementStyle.ON_SURFACE); } @Override protected int numStuck(AvatarRenderState state) { return state.stingerCount; } }