You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build-data/paper.at
+5
Original file line number
Diff line number
Diff line change
@@ -628,6 +628,11 @@ public net.minecraft.world.level.block.entity.trialspawner.TrialSpawner stateAcc
628
628
public net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData currentMobs
629
629
public net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData detectedPlayers
630
630
public net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerData nextSpawnData
631
+
public net.minecraft.world.level.block.entity.vault.VaultBlockEntity serverData
632
+
public net.minecraft.world.level.block.entity.vault.VaultServerData getRewardedPlayers()Ljava/util/Set;
633
+
public net.minecraft.world.level.block.entity.vault.VaultServerData pauseStateUpdatingUntil(J)V
634
+
public net.minecraft.world.level.block.entity.vault.VaultServerData stateUpdatingResumesAt()J
635
+
public net.minecraft.world.level.block.entity.vault.VaultSharedData getConnectedPlayers()Ljava/util/Set;
631
636
public net.minecraft.world.level.block.state.BlockBehaviour getMenuProvider(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;)Lnet/minecraft/world/MenuProvider;
632
637
public net.minecraft.world.level.block.state.BlockBehaviour hasCollision
633
638
public net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase destroySpeed
* Gets the players who have used a key on this vault and unlocked it.
112
+
*
113
+
* @return An unmodifiable collection of player uuids.
114
+
*
115
+
* @apiNote Only the most recent 128 player UUIDs will be stored by vault blocks.
116
+
*/
117
+
@Unmodifiable
118
+
Collection<UUID> getRewardedPlayers();
119
+
120
+
/**
121
+
* Adds a player as rewarded for this vault.
122
+
*
123
+
* @param playerUUID The player's uuid.
124
+
* @return {@code true} if this player was previously not rewarded, and has been added as a result of this operation.
125
+
*
126
+
* @apiNote Only the most recent 128 player UUIDs will be stored by vault blocks. Attempting to add more will result in
127
+
* the first player UUID being removed.
128
+
*/
129
+
booleanaddRewardedPlayer(UUIDplayerUUID);
130
+
131
+
/**
132
+
* Removes a player as rewarded for this vault, allowing them to use a {@link #getKeyItem() key item} again to receive rewards.
133
+
*
134
+
* @param playerUUID The player's uuid.
135
+
* @return {@code true} if this player was previously rewarded, and has been removed as a result of this operation.
136
+
*
137
+
* @apiNote Only the most recent 128 player UUIDs will be stored by vault blocks.
138
+
*/
139
+
booleanremoveRewardedPlayer(UUIDplayerUUID);
140
+
141
+
/**
142
+
* Returns whether a given player has already been rewarded by this vault.
143
+
*
144
+
* @param playerUUID The player's uuid.
145
+
* @return Whether this player was previously rewarded by this vault.
146
+
*/
147
+
booleanhasRewardedPlayer(UUIDplayerUUID);
148
+
149
+
/**
150
+
* Gets an unmodifiable set of "connected players"; players who are inside this vault's activation range and who have not received rewards yet.
151
+
*
152
+
* @apiNote Vaults will only periodically scan for nearby players, so it may take until the next {@link #getNextStateUpdateTime() update time} for this
153
+
* collection to be updated upon a player entering its range.
154
+
*
155
+
* @return An unmodifiable set of connected player uuids.
156
+
*/
157
+
@Unmodifiable
158
+
Set<UUID> getConnectedPlayers();
159
+
160
+
/**
161
+
* Returns whether a given player is currently connected to this vault.
162
+
*
163
+
* @param playerUUID the player's uuid
164
+
* @return {@code true} if this player is currently connected to this vault.
165
+
*
166
+
* @see #getConnectedPlayers()
167
+
*/
168
+
booleanhasConnectedPlayer(UUIDplayerUUID);
169
+
170
+
/**
171
+
* Gets the item currently being displayed inside this vault. Displayed items will automatically cycle between random items from the {@link #getDisplayedLootTable()}
172
+
* or {@link #getLootTable()} loot tables while this vault is active.
173
+
*
174
+
* @return The item currently being displayed inside this vault.
175
+
*/
176
+
ItemStackgetDisplayedItem();
177
+
178
+
/**
179
+
* Sets the item to display inside this vault until the next cycle.
Preconditions.checkArgument(Double.isFinite(activationRange), "activation range must not be NaN or infinite");
52
+
Preconditions.checkArgument(activationRange <= this.getDeactivationRange(), "New activation range (%s) must be less or equal to deactivation range (%s)", activationRange, this.getDeactivationRange());
Preconditions.checkArgument(Double.isFinite(deactivationRange), "deactivation range must not be NaN or infinite");
66
+
Preconditions.checkArgument(deactivationRange >= this.getActivationRange(), "New deactivation range (%s) must be more or equal to activation range (%s)", deactivationRange, this.getActivationRange());
0 commit comments