Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
fix code
  • Loading branch information
LouisQuepierts committed Aug 25, 2024
1 parent 39f497c commit b5788c3
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
package net.quepierts.simpleanimator.core.proxy;

import net.minecraft.client.player.AbstractClientPlayer;
import net.minecraft.client.player.RemotePlayer;
import net.minecraft.resources.ResourceLocation;
import net.quepierts.simpleanimator.api.IAnimateHandler;
import net.quepierts.simpleanimator.core.animation.Animator;
import net.quepierts.simpleanimator.core.client.ClientAnimator;
import net.quepierts.simpleanimator.core.client.ClientAnimatorManager;
import net.quepierts.simpleanimator.core.client.ClientPlayerNavigator;
import net.quepierts.simpleanimator.core.config.ClientConfiguration;
import org.joml.Vector3f;

public class ClientProxy extends CommonProxy {
private final ClientPlayerNavigator navigator;
Expand Down Expand Up @@ -40,12 +33,4 @@ public void setup() {
public ClientConfiguration getClientConfiguration() {
return config;
}

public void example(AbstractClientPlayer player) {
Animator animator = ((IAnimateHandler) player).simpleanimator$getAnimator();
animator.play(ResourceLocation.fromNamespaceAndPath("id", "anim_name"));

ClientAnimator clientAnimator = (ClientAnimator) animator;
Vector3f name = clientAnimator.getVariable("name").getAsVector3f();
}
}

0 comments on commit b5788c3

Please sign in to comment.