Skip to content

Commit

Permalink
rename method for next spawn attemp time
Browse files Browse the repository at this point in the history
  • Loading branch information
Doc94 committed Jan 27, 2025
1 parent 36256ac commit 8ff9b7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions paper-api/src/main/java/org/bukkit/block/TrialSpawner.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public interface TrialSpawner extends TileState {
*
* @return the Gametime in ticks
*/
public long getNextMobSpawnsAt();
public long getNextSpawnAttempt();

/**
* Sets the Gametime in ticks when the next spawn attempt happens.
*
* @param ticks the Gametime in ticks for the next mob spawn
*/
public void setNextMobSpawnsAt(long ticks);
public void setNextSpawnAttempt(long ticks);

/**
* Gets the length in ticks the spawner will stay in cooldown for.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public void setCooldownEnd(long ticks) {
}

@Override
public long getNextMobSpawnsAt() {
public long getNextSpawnAttempt() {
return this.getSnapshot().trialSpawner.getData().nextMobSpawnsAt;
}

@Override
public void setNextMobSpawnsAt(long ticks) {
public void setNextSpawnAttempt(long ticks) {
this.getSnapshot().trialSpawner.getData().nextMobSpawnsAt = ticks;
}

Expand Down

0 comments on commit 8ff9b7b

Please sign in to comment.