Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Sep 16, 2024
1 parent 17924db commit a5020e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ public boolean equals(Object other) {
}

@Override
public GlobalVec3 align(EnumSet<Axis> p_82518_) {
return new GlobalVec3(dimension, level, super.align(p_82518_));
public GlobalVec3 align(EnumSet<Axis> axis) {
return new GlobalVec3(dimension, level, super.align(axis));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@ public ServerLevel getTargetServerLevelOr(ServerLevel backup) {
return target.getLevel(backup) instanceof ServerLevel serverlevel ? serverlevel : backup;
}

// TODO: Update Javadoc when the deprecated constructors get removed
// TODO: Update Javadoc (remove apiNote) when the deprecated constructors get removed
/**
* Checks if the event sub-type support changing the target level.
* <p>
*
* @apiNote At the moment, a positive result is not a guarantee that the change will be honored by a modded mode of teleportation.
* Only changing the target level when the original target level is different from the source level can be considered safe in 1.21.1.
* @implSpec This needs to be overwritten by subclasses depending on the capabilities of the code firing the event.
* @return <code>true</code> if the event also supports changing the target's level, <code>false</code> if it only supports changing its coordinates.
* @implSpec This needs to be overridden by subclasses depending on the capabilities of the code firing the event.
* @return {@code true} if the event also supports changing the target's level, {@code false} if it only supports changing its coordinates.
*/
public boolean supportsTargetLevelChange() {
return true;
}

// TODO: Update Javadoc when the deprecated constructors get removed
// TODO: Update Javadoc (remove apiNote) when the deprecated constructors get removed
/**
* Changes the target Level of the teleportation. Will throw an {@link IllegalStateException} if that is not supported or if the type
* of the provided level (client/server) doesn't match the original value's.
Expand Down

0 comments on commit a5020e0

Please sign in to comment.