Skip to content

Commit 738cdda

Browse files
committed
feat(api)!: bump to 19.0.0-SNAPSHOT for 26.1 breaking changes
Version bump to 19.0.0-SNAPSHOT to reflect breaking API changes required by Minecraft 26.1-snapshot-6. Wandering trader and weather properties on ServerWorldProperties are deprecated for removal as they move to per-world SavedData storage in 26.1. BREAKING CHANGE: API version bump from 18.x to 19.x Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
1 parent c93c855 commit 738cdda

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=org.spongepowered
2-
version=18.0.0-SNAPSHOT
2+
version=19.0.0-SNAPSHOT
33
organization=SpongePowered
44
projectUrl=https://www.spongepowered.org
55
projectDescription=A plugin API for Minecraft: Java Edition

src/main/java/org/spongepowered/api/world/server/storage/ServerWorldProperties.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,15 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
279279
*
280280
* @return The delay, in ticks
281281
*/
282+
@Deprecated(forRemoval = true, since = "19.0")
282283
Ticks wanderingTraderSpawnDelay();
283284

284285
/**
285286
* Sets the delay before a {@link WanderingTrader} will be spawned.
286287
*
287288
* @param delay The delay, in ticks
288289
*/
290+
@Deprecated(forRemoval = true, since = "19.0")
289291
void setWanderingTraderSpawnDelay(Ticks delay);
290292

291293
/**
@@ -297,20 +299,23 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
297299
*
298300
* @return The delay, as a percentage
299301
*/
302+
@Deprecated(forRemoval = true, since = "19.0")
300303
int wanderingTraderSpawnChance();
301304

302305
/**
303306
* Sets the chance that a {@link WanderingTrader} will be spawned.
304307
*
305308
* @param chance The chance, as a percentage
306309
*/
310+
@Deprecated(forRemoval = true, since = "19.0")
307311
void setWanderingTraderSpawnChance(int chance);
308312

309313
/**
310314
* Gets the {@link UUID unique id} of the {@link WanderingTrader} that has been spawned.
311315
*
312316
* @return The unique id or {@link Optional#empty()} if one has not been spawned
313317
*/
318+
@Deprecated(forRemoval = true, since = "19.0")
314319
Optional<UUID> wanderTraderUniqueId();
315320

316321
/**
@@ -322,6 +327,7 @@ default void setSerializationBehavior(SerializationBehavior behavior) {
322327
*
323328
* @param trader The trader
324329
*/
330+
@Deprecated(forRemoval = true, since = "19.0")
325331
void setWanderingTrader(@Nullable WanderingTrader trader);
326332

327333
/**
@@ -374,6 +380,7 @@ default WorldBorder worldBorder() {
374380
}
375381

376382
@Override
383+
@Deprecated(forRemoval = true, since = "19.0")
377384
default Weather weather() {
378385
return this.require(Keys.WEATHER);
379386
}

0 commit comments

Comments
 (0)