Rename parameter
This commit is contained in:
parent
36e1d44d18
commit
dc87be4e4a
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue