Skip to content

Commit

Permalink
Update new additions to 1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeltumn committed Feb 11, 2023
1 parent fb05423 commit 13d61c8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 47 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ A fabric mod with feature additions, bugfixes and various performance improvemen
- Fixes custom models sometimes disappearing when not looking at the center

### MCC Island-only Features
- Adds a setting to show player heads in UIs
- Removes client log spam from resource pack loading
- Adds a setting to show player heads in UIs
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.3
loader_version=0.14.11
yarn_mappings=1.19.3+build.5
loader_version=0.14.14

#Fabric api
fabric_version=0.68.1+1.19.3
fabric_version=0.73.2+1.19.3
# Mod Properties
mod_version=0.1.5
maven_group=com.noxcrew
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.math.Vector3f;
import com.mojang.math.Vector4f;
import com.mojang.math.Axis;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.ItemTransforms;
import net.minecraft.client.renderer.entity.LivingEntityRenderer;
import net.minecraft.client.renderer.entity.layers.CustomHeadLayer;
import net.minecraft.client.resources.model.BakedModel;
import net.minecraft.core.Direction;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.network.syncher.EntityDataAccessor;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
Expand All @@ -23,9 +19,9 @@
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.phys.AABB;
import net.minecraft.world.phys.Vec3;
import org.joml.Vector4f;
import org.lwjgl.system.MemoryStack;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
Expand Down Expand Up @@ -102,7 +98,7 @@ private AABB updateBoundingBox(ArmorStand armorStand) {
var poseStack = new PoseStack();

// Set up the pose stack
poseStack.mulPose(Vector3f.YP.rotationDegrees(180f - armorStand.yBodyRot));
poseStack.mulPose(Axis.YP.rotationDegrees(180f - armorStand.yBodyRot));
poseStack.scale(-1.0F, -1.0F, 1.0F);
poseStack.translate(0.0D, (double) -1.501F, 0.0D);

Expand All @@ -126,13 +122,13 @@ private AABB updateBoundingBox(ArmorStand armorStand) {
var yRot = ((float)Math.PI / 180F) * pose.getY();
var zRot = ((float)Math.PI / 180F) * pose.getZ();
if (zRot != 0.0F) {
poseStack.mulPose(Vector3f.ZP.rotation(zRot));
poseStack.mulPose(Axis.ZP.rotation(zRot));
}
if (yRot != 0.0F) {
poseStack.mulPose(Vector3f.YP.rotation(yRot));
poseStack.mulPose(Axis.YP.rotation(yRot));
}
if (xRot != 0.0F) {
poseStack.mulPose(Vector3f.XP.rotation(xRot));
poseStack.mulPose(Axis.XP.rotation(xRot));
}
CustomHeadLayer.translateToHead(poseStack, false);
itemModel.getTransforms().getTransform(ItemTransforms.TransformType.HEAD).apply(false, poseStack);
Expand All @@ -153,17 +149,17 @@ else if (!leftItem.isEmpty() || !rightItem.isEmpty()) {
var yRot = ((float)Math.PI / 180F) * pose.getY();
var zRot = ((float)Math.PI / 180F) * pose.getZ();
if (zRot != 0.0F) {
poseStack.mulPose(Vector3f.ZP.rotation(zRot));
poseStack.mulPose(Axis.ZP.rotation(zRot));
}
if (yRot != 0.0F) {
poseStack.mulPose(Vector3f.YP.rotation(yRot));
poseStack.mulPose(Axis.YP.rotation(yRot));
}
if (xRot != 0.0F) {
poseStack.mulPose(Vector3f.XP.rotation(xRot));
poseStack.mulPose(Axis.XP.rotation(xRot));
}

poseStack.mulPose(Vector3f.XP.rotationDegrees(-90.0F));
poseStack.mulPose(Vector3f.YP.rotationDegrees(180.0F));
poseStack.mulPose(Axis.XP.rotationDegrees(-90.0F));
poseStack.mulPose(Axis.YP.rotationDegrees(180.0F));
poseStack.translate((double) ((float) (flag2 ? -1 : 1) / 16.0F), 0.125D, -0.625D);
itemModel = itemRenderer.getModel(flag2 ? leftItem : rightItem, armorStand.level, armorStand, 0);
}
Expand Down Expand Up @@ -202,9 +198,7 @@ private static AABB iterateQuads(PoseStack poseStack, AABB boundingBox, ByteBuff
float f = bytebuffer.getFloat(0);
float f1 = bytebuffer.getFloat(4);
float f2 = bytebuffer.getFloat(8);
Vector4f vector4f = new Vector4f(f, f1, f2, 1.0F);
vector4f.transform(matrix4f);
boundingBox = expandToInclude(boundingBox, vector4f);
boundingBox = expandToInclude(boundingBox, matrix4f.transform(new Vector4f(f, f1, f2, 1.0F)));
}
}
return boundingBox;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import com.noxcrew.noxesium.mixin.client.component.SkullBlockEntityExt;
import net.minecraft.Util;
import net.minecraft.client.resources.SkinManager;
import org.jetbrains.annotations.Nullable;

import javax.annotation.Nullable;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/noxesium.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"client.ClientPacketListenerMixin",
"client.LivingEntityMixin",
"client.MinecraftMixin",
"client.ModelBakeryMixin",
"client.PlayerTabOverlayMixin",
"client.adventure.GameRendererMixin",
"client.adventure.ItemStackMixin",
Expand Down

0 comments on commit 13d61c8

Please sign in to comment.