diff --git a/src/main/java/com/trainguy9512/animationoverhaul/AnimationOverhaulMain.java b/src/main/java/com/trainguy9512/animationoverhaul/AnimationOverhaulMain.java index 20cfafa..55c2782 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/AnimationOverhaulMain.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/AnimationOverhaulMain.java @@ -1,14 +1,12 @@ package com.trainguy9512.animationoverhaul; -import com.trainguy9512.animationoverhaul.animation.entity.PlayerPartAnimator; -import com.trainguy9512.animationoverhaul.util.data.LivingEntityAnimatorRegistry; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupDataLoader; +import com.trainguy9512.animationoverhaul.animation.data.LivingEntityAnimatorRegistry; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupDataLoader; import net.fabricmc.api.ModInitializer; import net.fabricmc.fabric.api.resource.ResourceManagerHelper; import net.minecraft.server.packs.PackType; import net.minecraft.world.entity.Entity; -import net.minecraft.world.entity.EntityType; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/AnimatorDispatcher.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/AnimatorDispatcher.java index 4023d45..47c9e22 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/AnimatorDispatcher.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/AnimatorDispatcher.java @@ -5,7 +5,7 @@ import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; import com.trainguy9512.animationoverhaul.animation.entity.LivingEntityAnimator; import com.trainguy9512.animationoverhaul.animation.pose.BakedAnimationPose; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; import net.minecraft.client.model.EntityModel; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.LivingEntity; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/data/AnimationDataContainer.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataContainer.java similarity index 92% rename from src/main/java/com/trainguy9512/animationoverhaul/util/data/AnimationDataContainer.java rename to src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataContainer.java index b963a5e..73bbd69 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/data/AnimationDataContainer.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataContainer.java @@ -1,4 +1,4 @@ -package com.trainguy9512.animationoverhaul.util.data; +package com.trainguy9512.animationoverhaul.animation.data; import com.google.common.collect.Maps; import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; @@ -12,9 +12,9 @@ public class AnimationDataContainer { - private final HashMap, Variable> entityAnimationVariables; + private final HashMap, AnimationVariable> entityAnimationVariables; private final HashMap entitySampleableAnimationStates; - private CachedPoseContainer cachedPoseContainer = new CachedPoseContainer(); + private final CachedPoseContainer cachedPoseContainer = new CachedPoseContainer(); public AnimationDataContainer(){ this.entityAnimationVariables = Maps.newHashMap(); @@ -83,17 +83,17 @@ public AnimationPose getCachedPose(String identifier, LocatorSkeleton loca } } - public Variable get(DataKey dataKey){ + public AnimationVariable get(DataKey dataKey){ if(!entityAnimationVariables.containsKey(dataKey)){ - entityAnimationVariables.put(dataKey, new Variable<>(dataKey)); + entityAnimationVariables.put(dataKey, new AnimationVariable<>(dataKey)); } - return (Variable) entityAnimationVariables.get(dataKey); + return (AnimationVariable) entityAnimationVariables.get(dataKey); } - public TreeMap> getDebugData(){ - TreeMap> finalList = Maps.newTreeMap(); + public TreeMap> getDebugData(){ + TreeMap> finalList = Maps.newTreeMap(); for(DataKey dataKey : this.entityAnimationVariables.keySet()){ - Variable data = entityAnimationVariables.get(dataKey); + AnimationVariable data = entityAnimationVariables.get(dataKey); String[] typeSplitted = data.get().getClass().toString().split("\\."); String type = typeSplitted[typeSplitted.length - 1]; @@ -161,7 +161,7 @@ public float getDataValueEasedCondition(AnimationDataContainer.DataKey da public void incrementInTicksFromCondition(DataKey dataKey, boolean condition, float ticksToIncrement, float ticksToDecrement){ ticksToIncrement = Math.max(1, ticksToIncrement); ticksToDecrement = Math.max(1, ticksToDecrement); - Variable data = this.get(dataKey); + AnimationVariable data = this.get(dataKey); data.set(Mth.clamp((data.get()) + (condition ? 1/ticksToIncrement : -1/ticksToDecrement), 0, 1)); } @@ -186,7 +186,7 @@ public void incrementInFramesFromCondition(DataKey dataKey, boolean condi * @param ticksToIncrement Time in ticks to increment from 0 to 1 */ public void incrementInTicksOrResetFromCondition(DataKey dataKey, boolean condition, float ticksToIncrement){ - Variable data = this.get(dataKey); + AnimationVariable data = this.get(dataKey); if(condition){ data.set(0F); data.set(0F); @@ -218,8 +218,8 @@ public void incrementInFramesOrResetFromCondition(DataKey dataKey, boolea * @param random Java random object used to pick a random index within numberOfAnimations */ public void incrementInTicksOrResetRandomFromCondition(DataKey dataKeyMain, DataKey dataKeyIndex, int numberOfAnimations, boolean condition, float ticksToIncrement, Random random){ - Variable dataMain = this.get(dataKeyMain); - Variable dataIndex = this.get(dataKeyIndex); + AnimationVariable dataMain = this.get(dataKeyMain); + AnimationVariable dataIndex = this.get(dataKeyIndex); if(condition){ dataMain.set(0F); dataMain.set(0F); @@ -258,13 +258,13 @@ public String getIdentifier(){ } } - public static class Variable{ + public static class AnimationVariable{ private D value; private D valueOld; private final D defaultValue; - public Variable(DataKey dataKey){ + public AnimationVariable(DataKey dataKey){ this.value = dataKey.defaultValue; this.valueOld = dataKey.defaultValue; this.defaultValue = dataKey.defaultValue; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataKey.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataKey.java new file mode 100644 index 0000000..7eab5f7 --- /dev/null +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/AnimationDataKey.java @@ -0,0 +1,12 @@ +package com.trainguy9512.animationoverhaul.animation.data; + +import java.util.function.Supplier; + +public class AnimationDataKey { + + private final Supplier defaultValue; + + public AnimationDataKey(Supplier defaultValue) { + this.defaultValue = defaultValue; + } +} diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/data/LivingEntityAnimatorRegistry.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/LivingEntityAnimatorRegistry.java similarity index 93% rename from src/main/java/com/trainguy9512/animationoverhaul/util/data/LivingEntityAnimatorRegistry.java rename to src/main/java/com/trainguy9512/animationoverhaul/animation/data/LivingEntityAnimatorRegistry.java index de226fa..424b620 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/data/LivingEntityAnimatorRegistry.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/LivingEntityAnimatorRegistry.java @@ -1,4 +1,4 @@ -package com.trainguy9512.animationoverhaul.util.data; +package com.trainguy9512.animationoverhaul.animation.data; import com.google.common.collect.Maps; import com.trainguy9512.animationoverhaul.animation.entity.LivingEntityAnimator; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupData.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupData.java similarity index 98% rename from src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupData.java rename to src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupData.java index c146fac..77bba50 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupData.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupData.java @@ -1,4 +1,4 @@ -package com.trainguy9512.animationoverhaul.util.data; +package com.trainguy9512.animationoverhaul.animation.data; import com.google.common.collect.Maps; import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupDataLoader.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupDataLoader.java similarity index 99% rename from src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupDataLoader.java rename to src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupDataLoader.java index 63f59de..03b0429 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TimelineGroupDataLoader.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TimelineGroupDataLoader.java @@ -1,4 +1,4 @@ -package com.trainguy9512.animationoverhaul.util.data; +package com.trainguy9512.animationoverhaul.animation.data; import com.google.common.collect.Maps; import com.google.gson.Gson; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TransformChannel.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TransformChannel.java similarity index 84% rename from src/main/java/com/trainguy9512/animationoverhaul/util/data/TransformChannel.java rename to src/main/java/com/trainguy9512/animationoverhaul/animation/data/TransformChannel.java index f96933d..7ee361c 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/data/TransformChannel.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/data/TransformChannel.java @@ -1,4 +1,4 @@ -package com.trainguy9512.animationoverhaul.util.data; +package com.trainguy9512.animationoverhaul.animation.data; import java.util.List; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/FirstPersonPlayerAnimator.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/FirstPersonPlayerAnimator.java index e065497..ed36cf5 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/FirstPersonPlayerAnimator.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/FirstPersonPlayerAnimator.java @@ -1,19 +1,17 @@ package com.trainguy9512.animationoverhaul.animation.entity; -import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.animation.pose.BakedAnimationPose; import com.trainguy9512.animationoverhaul.animation.pose.sample.*; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; import net.minecraft.client.Minecraft; import net.minecraft.client.model.PlayerModel; import net.minecraft.client.model.geom.PartPose; import net.minecraft.client.player.LocalPlayer; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Mth; -import net.minecraft.world.entity.AnimationState; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.item.ItemStack; import org.joml.Vector3f; @@ -328,9 +326,12 @@ private AnimationPose getStaticMainBasicItemPose(){ */ + public void tick(LivingEntity livingEntity, AnimationDataContainer entityAnimationData){ + + this.setEntityAnimationVariable(TIME_TEST, this.getEntityAnimationVariable(TIME_TEST) + 1); diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/LivingEntityAnimator.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/LivingEntityAnimator.java index 5520922..ff70acf 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/LivingEntityAnimator.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/LivingEntityAnimator.java @@ -7,7 +7,7 @@ import com.trainguy9512.animationoverhaul.animation.pose.BakedAnimationPose; import com.trainguy9512.animationoverhaul.animation.pose.sample.*; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; import net.minecraft.client.model.EntityModel; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.world.entity.LivingEntity; @@ -54,7 +54,7 @@ protected AnimationDataContainer getEntityAnimationData(){ return this.entityAnimationData; } - protected AnimationDataContainer.Variable getEntityAnimationVariableObject(AnimationDataContainer.DataKey dataKey){ + protected AnimationDataContainer.AnimationVariable getEntityAnimationVariableObject(AnimationDataContainer.DataKey dataKey){ return getEntityAnimationData().get(dataKey); } @@ -90,7 +90,12 @@ protected float getWalkAnimationSpeed(){ } protected float getWalkAnimationPosition(){ + + + + return this.livingEntity.walkAnimation.position(); + } public void tick(LivingEntity livingEntity){ diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/PlayerPartAnimator.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/PlayerPartAnimator.java index 05b5928..3d59b19 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/PlayerPartAnimator.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/entity/PlayerPartAnimator.java @@ -1,24 +1,15 @@ package com.trainguy9512.animationoverhaul.animation.entity; -import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; -import com.trainguy9512.animationoverhaul.animation.pose.sample.AnimationBlendSpacePlayer; -import com.trainguy9512.animationoverhaul.animation.pose.sample.AnimationSequencePlayer; -import com.trainguy9512.animationoverhaul.animation.pose.sample.AnimationStateMachine; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; -import com.trainguy9512.animationoverhaul.util.time.TickTimeUtils; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; import net.minecraft.client.model.PlayerModel; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.client.model.geom.PartPose; -import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Mth; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.player.Player; -import java.util.List; - public class PlayerPartAnimator extends LivingEntityAnimator, PlayerPartAnimator.ModelPartLocators> { private static final String MODEL_PART_ROOT = "root"; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/JointPose.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/JointPose.java index 0385c7e..26a83ee 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/JointPose.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/JointPose.java @@ -1,8 +1,8 @@ package com.trainguy9512.animationoverhaul.animation.pose; import com.mojang.blaze3d.vertex.PoseStack; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; -import com.trainguy9512.animationoverhaul.util.data.TransformChannel; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; +import com.trainguy9512.animationoverhaul.animation.data.TransformChannel; import com.trainguy9512.animationoverhaul.util.time.ChannelTimeline; import com.trainguy9512.animationoverhaul.util.time.Easing; import net.minecraft.client.model.geom.ModelPart; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationBlendSpacePlayer.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationBlendSpacePlayer.java index 778b7ad..bc49ab0 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationBlendSpacePlayer.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationBlendSpacePlayer.java @@ -2,8 +2,8 @@ import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Mth; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontage.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontage.java index 84f2ca2..8a03e19 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontage.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontage.java @@ -2,7 +2,7 @@ import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; import com.trainguy9512.animationoverhaul.util.time.Easing; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Mth; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontageTrack.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontageTrack.java index 1d7d4a9..cf1de35 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontageTrack.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationMontageTrack.java @@ -2,7 +2,7 @@ import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; import net.minecraft.util.Mth; import java.util.ArrayList; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationSequencePlayer.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationSequencePlayer.java index d5fd207..37cecaa 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationSequencePlayer.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationSequencePlayer.java @@ -3,14 +3,12 @@ import com.google.common.collect.Maps; import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; -import com.trainguy9512.animationoverhaul.util.time.TickTimeUtils; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; import net.minecraft.resources.ResourceLocation; import net.minecraft.util.Mth; import java.util.HashMap; -import java.util.List; public class AnimationSequencePlayer extends TimeBasedAnimationState { diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationStateMachine.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationStateMachine.java index d360f6c..5329511 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationStateMachine.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/AnimationStateMachine.java @@ -4,7 +4,7 @@ import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; import com.trainguy9512.animationoverhaul.util.time.Easing; import net.minecraft.util.Mth; import org.jetbrains.annotations.Nullable; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/SampleableAnimationState.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/SampleableAnimationState.java index 84aa547..cd0fa1a 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/SampleableAnimationState.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/SampleableAnimationState.java @@ -2,7 +2,7 @@ import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; public class SampleableAnimationState { diff --git a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/TestReferenceSampler.java b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/TestReferenceSampler.java index bd59ff6..0165fa8 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/TestReferenceSampler.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/animation/pose/sample/TestReferenceSampler.java @@ -2,7 +2,7 @@ import com.trainguy9512.animationoverhaul.animation.pose.AnimationPose; import com.trainguy9512.animationoverhaul.util.animation.LocatorSkeleton; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; +import com.trainguy9512.animationoverhaul.animation.data.AnimationDataContainer; public class TestReferenceSampler extends SampleableAnimationState { diff --git a/src/main/java/com/trainguy9512/animationoverhaul/mixin/debug/MixinDebugScreenOverlay.java b/src/main/java/com/trainguy9512/animationoverhaul/mixin/debug/MixinDebugScreenOverlay.java index 3e89a11..aec729c 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/mixin/debug/MixinDebugScreenOverlay.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/mixin/debug/MixinDebugScreenOverlay.java @@ -1,25 +1,5 @@ package com.trainguy9512.animationoverhaul.mixin.debug; -import com.mojang.blaze3d.vertex.PoseStack; -import com.trainguy9512.animationoverhaul.AnimationOverhaulMain; -import com.trainguy9512.animationoverhaul.animation.AnimatorDispatcher; -import com.trainguy9512.animationoverhaul.util.data.AnimationDataContainer; -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.Font; -import net.minecraft.client.gui.components.DebugScreenOverlay; -import net.minecraft.world.entity.Entity; -import net.minecraft.world.entity.EntityType; -import net.minecraft.world.phys.HitResult; -import org.spongepowered.asm.mixin.Final; -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; - -import java.text.DecimalFormat; -import java.util.*; - //TODO: will have to clean this mess up later, dunno what changed with 1.20 and i don't really care toooo much about the debug gui right now so meh /* @Mixin(DebugScreenOverlay.class) diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/math/RotationMatrix.java b/src/main/java/com/trainguy9512/animationoverhaul/util/math/RotationMatrix.java index 36267fa..07cac44 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/math/RotationMatrix.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/util/math/RotationMatrix.java @@ -4,6 +4,7 @@ import org.joml.Quaternionf; import org.joml.Vector3f; +@Deprecated public class RotationMatrix { public float[][] matrixGrid; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/time/ChannelTimeline.java b/src/main/java/com/trainguy9512/animationoverhaul/util/time/ChannelTimeline.java index 7af1f10..8167988 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/time/ChannelTimeline.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/util/time/ChannelTimeline.java @@ -1,6 +1,6 @@ package com.trainguy9512.animationoverhaul.util.time; -import com.trainguy9512.animationoverhaul.util.data.TransformChannel; +import com.trainguy9512.animationoverhaul.animation.data.TransformChannel; import net.minecraft.util.Mth; import org.joml.Quaternionf; diff --git a/src/main/java/com/trainguy9512/animationoverhaul/util/time/TimerProcessor.java b/src/main/java/com/trainguy9512/animationoverhaul/util/time/TimerProcessor.java index a2a9095..bab7c09 100644 --- a/src/main/java/com/trainguy9512/animationoverhaul/util/time/TimerProcessor.java +++ b/src/main/java/com/trainguy9512/animationoverhaul/util/time/TimerProcessor.java @@ -1,6 +1,6 @@ package com.trainguy9512.animationoverhaul.util.time; -import com.trainguy9512.animationoverhaul.util.data.TimelineGroupData; +import com.trainguy9512.animationoverhaul.animation.data.TimelineGroupData; import net.minecraft.util.Mth; @Deprecated