Skip to content

Commit

Permalink
Add scale management and reorder remove() method
Browse files Browse the repository at this point in the history
Introduced `setScale` and `getScale` methods to handle character scaling. Reorganized the `remove()` method placement for better logical grouping. Removed redundant `remove()` declaration.
  • Loading branch information
NonSwag committed Jan 19, 2025
1 parent 136909d commit dc38b5f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/src/main/java/net/thenextlvl/character/Character.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ public interface Character<T extends Entity> {

boolean persist();

void remove();

boolean removeAction(String name);

boolean removeViewer(UUID player);
Expand Down Expand Up @@ -131,6 +129,8 @@ public interface Character<T extends Entity> {

boolean setPose(Pose pose);

boolean setScale(double scale);

boolean setSpawnLocation(@Nullable Location location);

boolean setTeamColor(@Nullable NamedTextColor color);
Expand All @@ -142,4 +142,8 @@ public interface Character<T extends Entity> {
boolean spawn();

boolean spawn(Location location);

double getScale();

void remove();
}

0 comments on commit dc38b5f

Please sign in to comment.