Skip to content

Commit

Permalink
Minor API Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4722202468 committed Dec 14, 2022
1 parent 6969f43 commit ee827b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/java/net/worldseed/gestures/EmotePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public abstract class EmotePlayer extends EntityCreature {
private final EmoteModel model;
protected final AnimationHandler animationHandler;
private final AnimationHandler animationHandler;
private int emoteIndex = 0;

public EmotePlayer(Instance instance, Pos pos, PlayerSkin skin, EntityType entityType) {
Expand Down Expand Up @@ -53,4 +53,8 @@ public void remove() {
this.animationHandler.destroy();
super.remove();
}

protected AnimationHandler getAnimationHandler() {
return animationHandler;
}
}
2 changes: 1 addition & 1 deletion src/test/java/emotes/EmoteExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public class EmoteExample extends EmotePlayer {
public EmoteExample(Instance instance, Pos pos, PlayerSkin skin) {
super(instance, pos, skin);
loadEmotes(ANIMATIONS);
this.animationHandler.playRepeat("dab");
getAnimationHandler().playRepeat("dab");
}
}

0 comments on commit ee827b8

Please sign in to comment.