Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vault block API #12068

Merged
merged 15 commits into from
Feb 12, 2025
4 changes: 2 additions & 2 deletions paper-api/src/main/java/org/bukkit/block/Vault.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ public interface Vault extends TileState {
* @apiNote Vaults will only periodically scan for nearby players, so this collection may take until the next {@link #getNextStateUpdateTime() update time} to update
* upon a player entering its range.
*
* @return An unmodifiable list of connected player uuids.
* @return An unmodifiable set of connected player uuids.
Warriorrrr marked this conversation as resolved.
Show resolved Hide resolved
*/
@Unmodifiable
Collection<UUID> getConnectedPlayers();
Set<UUID> getConnectedPlayers();

/**
* Gets the item currently being displayed inside this vault. Displayed items will automatically cycle between random items from the {@link #getDisplayedLootTable()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.jetbrains.annotations.Unmodifiable;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
import java.util.Collection;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
Expand Down Expand Up @@ -136,7 +135,7 @@ public boolean removeRewardedPlayer(final UUID playerUUID) {
}

@Override
public @Unmodifiable Collection<UUID> getConnectedPlayers() {
public @Unmodifiable Set<UUID> getConnectedPlayers() {
return ImmutableSet.copyOf(this.getSnapshot().getSharedData().getConnectedPlayers());
}

Expand Down
Loading