Commits
Nothixal authored and md_5 committed 24fbb46243b
1 1 | package org.bukkit.block; |
2 2 | |
3 + | import java.util.Set; |
4 + | import java.util.UUID; |
3 5 | import org.bukkit.inventory.ItemStack; |
4 6 | import org.bukkit.loot.LootTable; |
5 7 | import org.jetbrains.annotations.ApiStatus; |
6 8 | import org.jetbrains.annotations.NotNull; |
7 9 | import org.jetbrains.annotations.Nullable; |
8 10 | |
9 11 | /** |
10 12 | * Represents a captured state of a vault. |
11 13 | */ |
12 14 | Experimental | .
89 91 | */ |
90 92 | |
91 93 | ItemStack getKeyItem(); |
92 94 | |
93 95 | /** |
94 96 | * Sets the {@link ItemStack} players must use to unlock this vault. |
95 97 | * |
96 98 | * @param keyItem the key item |
97 99 | */ |
98 100 | void setKeyItem( ItemStack keyItem); |
101 + | |
102 + | /** |
103 + | * Gets the players who have already received rewards from this vault. |
104 + | * |
105 + | * @return unmodifiable set of player UUIDs |
106 + | * @throws IllegalStateException if this block state is not placed |
107 + | */ |
108 + | |
109 + | Set<UUID> getRewardedPlayers(); |
99 110 | } |