diff --git a/src/main/java/latokike/mythorigins/common/entity/renderer/HeadFeatureRenderer.java b/src/main/java/latokike/mythorigins/common/entity/renderer/HeadFeatureRenderer.java deleted file mode 100644 index d777943..0000000 --- a/src/main/java/latokike/mythorigins/common/entity/renderer/HeadFeatureRenderer.java +++ /dev/null @@ -1,55 +0,0 @@ -package latokike.mythorigins.common.entity.renderer; - -import latokike.mythorigins.common.registry.MOPowers; -import net.fabricmc.api.EnvType; -import net.fabricmc.api.Environment; -import net.minecraft.client.render.VertexConsumerProvider; -import net.minecraft.client.render.entity.feature.FeatureRenderer; -import net.minecraft.client.render.entity.feature.FeatureRendererContext; -import net.minecraft.client.render.entity.model.EntityModel; -import net.minecraft.client.render.entity.model.ModelWithHead; -import net.minecraft.client.util.math.MatrixStack; -import net.minecraft.entity.LivingEntity; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraft.item.Items; -import net.minecraft.util.math.Vec3f; - -@Environment(EnvType.CLIENT) -public class HeadFeatureRenderer & ModelWithHead> extends FeatureRenderer { - private final float xScale; - private final float yScale; - private final float zScale; - - public HeadFeatureRenderer(FeatureRendererContext featureRendererContext) { - this(featureRendererContext, 1.0F, 1.0F, 1.0F); - } - - public HeadFeatureRenderer(FeatureRendererContext featureRendererContext, float f, float g, float h) { - super(featureRendererContext); - this.xScale = f; - this.yScale = g; - this.zScale = h; - } - - public void render(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, T livingEntity, float f, float g, float h, float j, float k, float l) { - this.renderHead(matrixStack, vertexConsumerProvider, i, livingEntity); - } - - public void renderHead(MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, T livingEntity) { - if (MOPowers.NONE.isActive(livingEntity)) { - Item item = Items.BARRIER; - ItemStack itemStack = item.getDefaultStack(); - matrixStack.push(); - matrixStack.scale(this.xScale, this.yScale, this.zScale); - - (this.getContextModel()).getHead().rotate(matrixStack); - matrixStack.translate(0.0D, -0.25D, 0.0D); - matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion(180.0F)); - matrixStack.scale(0.51F, -0.51F, -0.51F); - - //MinecraftClient.getInstance().getHeldItemRenderer().renderItem(livingEntity, itemStack, ModelTransformation.Mode.HEAD, false, matrixStack, vertexConsumerProvider, i); - matrixStack.pop(); - } - } -} \ No newline at end of file