Rename parameter

This commit is contained in:
filoghost 2021-08-08 18:36:33 +02:00
parent 36e1d44d18
commit dc87be4e4a
2 changed files with 6 additions and 6 deletions

View File

@ -47,11 +47,11 @@ public interface HolographicDisplaysAPI {
/**
* Creates a hologram at given location.
*
* @param source the location where it will appear
* @param location the location where it will appear
* @return the created hologram
* @since 1
*/
@NotNull Hologram createHologram(@NotNull Location source);
@NotNull Hologram createHologram(@NotNull Location location);
/**
* Returns all the active holograms. A hologram is no longer active after {@link Hologram#delete()} is invoked.

View File

@ -32,12 +32,12 @@ class DefaultHolographicDisplaysAPI implements HolographicDisplaysAPI {
}
@Override
public @NotNull Hologram createHologram(@NotNull Location source) {
Preconditions.notNull(source, "source");
Preconditions.notNull(source.getWorld(), "source's world");
public @NotNull Hologram createHologram(@NotNull Location location) {
Preconditions.notNull(location, "location");
Preconditions.notNull(location.getWorld(), "location's world");
Preconditions.checkState(Bukkit.isPrimaryThread(), "Async hologram creation");
return apiHologramManager.createHologram(new BaseHologramPosition(source), plugin);
return apiHologramManager.createHologram(new BaseHologramPosition(location), plugin);
}
@Override