Skip to content

Commit a2c9f58

Browse files
jpenillaroro1506HDOwen1212055Lulu13022002Doc94
authored
Update to 1.21.11-pre3 (#13194)
Co-authored-by: roro1506HD <[email protected]> Co-authored-by: Owen1212055 <[email protected]> Co-authored-by: Lulu13022002 <[email protected]> Co-authored-by: Pedro <[email protected]> Co-authored-by: Doc <[email protected]> Co-authored-by: Miles <[email protected]> Co-authored-by: Bjarne Koll <[email protected]>
1 parent f8cf03d commit a2c9f58

File tree

978 files changed

+11303
-8000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

978 files changed

+11303
-8000
lines changed

CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,30 @@ and your server.
192192
While we will fix minor formatting issues, you should stick to the guide below
193193
when making and submitting changes.
194194

195+
### Branches and Minecraft Versions
196+
197+
Generally, PRs should be targeted at the `main` branch, where active development for
198+
the latest Minecraft release happens.
199+
200+
If a new Minecraft release is imminent, it may be wise to wait until it's released
201+
and merged to `main` to avoid having to rebase your PR, as the `main` branch will be
202+
frozen during this time (you can ask in the Paper Discord if you're unsure).
203+
204+
For old Minecraft versions - we are unlikely to accept PRs targeting any versions not
205+
marked as supported at https://fill-ui.papermc.io/projects/paper.
206+
207+
For snapshots and other pre-release versions - you should only target these branches
208+
for changes specific to features or changes in those versions. For example, if Copper
209+
Golem is going to be added in 1.21.9, you can PR to the relevant dev branch as it would
210+
not make sense to merge that into `main`. Or, if you are fixing a bug that only exists in
211+
a dev branch, you should target that branch. When submitting PRs to dev branches, please
212+
coordinate with the dev team in Discord or open an issue before starting work to ensure
213+
it's an area we want to accept changes for. The team prefers to handle initial updating
214+
work through to the server running ourselves, so do not attempt to PR version updates
215+
(i.e. 25w42a -> 25w43a, etc.) or while there are still unapplied source patches. Feature
216+
patches are also not applied until at earliest the pre-release phase to avoid unnecessary
217+
churn.
218+
195219
## Formatting
196220

197221
All modifications to Vanilla files should be marked. For historical reasons,

build-data/paper.at

Lines changed: 113 additions & 118 deletions
Large diffs are not rendered by default.

gradle.properties

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
group=io.papermc.paper
2-
version=1.21.10-R0.1-SNAPSHOT
3-
mcVersion=1.21.10
2+
version=1.21.11-pre3-R0.1-SNAPSHOT
3+
mcVersion=1.21.11-pre3
4+
# This is the current API version for use in (paper-)plugin.yml files
5+
# During snapshot cycles this should be the anticipated version of the release target
6+
apiVersion=1.21.11
47

58
# Set to true while updating Minecraft version
6-
updatingMinecraft=false
9+
updatingMinecraft=true
710

811
org.gradle.configuration-cache=true
912
org.gradle.caching=true

gradle/wrapper/gradle-wrapper.jar

176 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

paper-api/build.gradle.kts

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import paper.libs.com.google.gson.Gson
2+
13
plugins {
24
`java-library`
35
`maven-publish`
@@ -136,20 +138,36 @@ configure<PublishingExtension> {
136138
}
137139
}
138140

139-
val generateApiVersioningFile by tasks.registering {
140-
inputs.property("version", project.version)
141-
val pomProps = layout.buildDirectory.file("pom.properties")
142-
outputs.file(pomProps)
143-
val projectVersion = project.version
144-
doLast {
145-
pomProps.get().asFile.writeText("version=$projectVersion")
141+
abstract class GenerateApiVersioningFile : DefaultTask() {
142+
@get:OutputFile
143+
abstract val outputFile: RegularFileProperty
144+
145+
@get:Input
146+
abstract val projectVersion: Property<String>
147+
148+
@get:Input
149+
abstract val apiVersion: Property<String>
150+
151+
@TaskAction
152+
fun generate() {
153+
val file = outputFile.get().asFile
154+
file.parentFile.mkdirs()
155+
val map = mapOf(
156+
"version" to projectVersion.get(),
157+
"currentApiVersion" to apiVersion.get()
158+
)
159+
file.writeText(Gson().toJson(map))
146160
}
147161
}
148162

163+
val generateApiVersioningFile = tasks.register<GenerateApiVersioningFile>("generateApiVersioningFile") {
164+
outputFile.set(layout.buildDirectory.file("apiVersioning.json"))
165+
projectVersion.set(project.version.toString())
166+
apiVersion.set(rootProject.providers.gradleProperty("apiVersion"))
167+
}
168+
149169
tasks.jar {
150-
from(generateApiVersioningFile.map { it.outputs.files.singleFile }) {
151-
into("META-INF/maven/${project.group}/${project.name}")
152-
}
170+
from(generateApiVersioningFile.flatMap { it.outputFile })
153171
manifest {
154172
attributes(
155173
"Automatic-Module-Name" to "org.bukkit"

paper-api/src/generated/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
@NullMarked
7171
@GeneratedClass
7272
public interface VanillaGoal<T extends Mob> extends Goal<T> {
73+
GoalKey<AbstractHorse> HORSE_MOUNT_PANIC = create("horse_mount_panic", AbstractHorse.class);
74+
7375
GoalKey<AbstractHorse> HORSE_RANDOM_STAND = create("horse_random_stand", AbstractHorse.class);
7476

7577
GoalKey<AbstractHorse> HORSE_RUN_AROUND_LIKE_CRAZY = create("horse_run_around_like_crazy", AbstractHorse.class);
@@ -298,6 +300,8 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
298300

299301
GoalKey<Monster> RANGED_CROSSBOW_ATTACK = create("ranged_crossbow_attack", Monster.class);
300302

303+
GoalKey<Monster> SPEAR_USE = create("spear_use", Monster.class);
304+
301305
GoalKey<Ocelot> OCELOT_AVOID_ENTITY = create("ocelot_avoid_entity", Ocelot.class);
302306

303307
GoalKey<Ocelot> OCELOT_TEMPT = create("ocelot_tempt", Ocelot.class);

paper-api/src/generated/java/io/papermc/paper/registry/keys/DamageTypeKeys.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ public final class DamageTypeKeys {
284284
*/
285285
public static final TypedKey<DamageType> SONIC_BOOM = create(key("sonic_boom"));
286286

287+
/**
288+
* {@code minecraft:spear}
289+
*
290+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
291+
*/
292+
public static final TypedKey<DamageType> SPEAR = create(key("spear"));
293+
287294
/**
288295
* {@code minecraft:spit}
289296
*

paper-api/src/generated/java/io/papermc/paper/registry/keys/DataComponentTypeKeys.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
@NullMarked
2626
@GeneratedClass
2727
public final class DataComponentTypeKeys {
28+
/**
29+
* {@code minecraft:attack_range}
30+
*
31+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
32+
*/
33+
public static final TypedKey<DataComponentType> ATTACK_RANGE = create(key("attack_range"));
34+
2835
/**
2936
* {@code minecraft:attribute_modifiers}
3037
*
@@ -214,6 +221,13 @@ public final class DataComponentTypeKeys {
214221
*/
215222
public static final TypedKey<DataComponentType> DAMAGE_RESISTANT = create(key("damage_resistant"));
216223

224+
/**
225+
* {@code minecraft:damage_type}
226+
*
227+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
228+
*/
229+
public static final TypedKey<DataComponentType> DAMAGE_TYPE = create(key("damage_type"));
230+
217231
/**
218232
* {@code minecraft:death_protection}
219233
*
@@ -354,6 +368,13 @@ public final class DataComponentTypeKeys {
354368
*/
355369
public static final TypedKey<DataComponentType> JUKEBOX_PLAYABLE = create(key("jukebox_playable"));
356370

371+
/**
372+
* {@code minecraft:kinetic_weapon}
373+
*
374+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
375+
*/
376+
public static final TypedKey<DataComponentType> KINETIC_WEAPON = create(key("kinetic_weapon"));
377+
357378
/**
358379
* {@code minecraft:llama/variant}
359380
*
@@ -424,6 +445,13 @@ public final class DataComponentTypeKeys {
424445
*/
425446
public static final TypedKey<DataComponentType> MAX_STACK_SIZE = create(key("max_stack_size"));
426447

448+
/**
449+
* {@code minecraft:minimum_attack_charge}
450+
*
451+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
452+
*/
453+
public static final TypedKey<DataComponentType> MINIMUM_ATTACK_CHARGE = create(key("minimum_attack_charge"));
454+
427455
/**
428456
* {@code minecraft:mooshroom/variant}
429457
*
@@ -459,6 +487,13 @@ public final class DataComponentTypeKeys {
459487
*/
460488
public static final TypedKey<DataComponentType> PARROT_VARIANT = create(key("parrot/variant"));
461489

490+
/**
491+
* {@code minecraft:piercing_weapon}
492+
*
493+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
494+
*/
495+
public static final TypedKey<DataComponentType> PIERCING_WEAPON = create(key("piercing_weapon"));
496+
462497
/**
463498
* {@code minecraft:pig/variant}
464499
*
@@ -578,6 +613,13 @@ public final class DataComponentTypeKeys {
578613
*/
579614
public static final TypedKey<DataComponentType> SUSPICIOUS_STEW_EFFECTS = create(key("suspicious_stew_effects"));
580615

616+
/**
617+
* {@code minecraft:swing_animation}
618+
*
619+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
620+
*/
621+
public static final TypedKey<DataComponentType> SWING_ANIMATION = create(key("swing_animation"));
622+
581623
/**
582624
* {@code minecraft:tool}
583625
*
@@ -641,6 +683,13 @@ public final class DataComponentTypeKeys {
641683
*/
642684
public static final TypedKey<DataComponentType> USE_COOLDOWN = create(key("use_cooldown"));
643685

686+
/**
687+
* {@code minecraft:use_effects}
688+
*
689+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
690+
*/
691+
public static final TypedKey<DataComponentType> USE_EFFECTS = create(key("use_effects"));
692+
644693
/**
645694
* {@code minecraft:use_remainder}
646695
*
@@ -697,6 +746,13 @@ public final class DataComponentTypeKeys {
697746
*/
698747
public static final TypedKey<DataComponentType> WRITTEN_BOOK_CONTENT = create(key("written_book_content"));
699748

749+
/**
750+
* {@code minecraft:zombie_nautilus/variant}
751+
*
752+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
753+
*/
754+
public static final TypedKey<DataComponentType> ZOMBIE_NAUTILUS_VARIANT = create(key("zombie_nautilus/variant"));
755+
700756
private DataComponentTypeKeys() {
701757
}
702758

paper-api/src/generated/java/io/papermc/paper/registry/keys/EnchantmentKeys.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,13 @@ public final class EnchantmentKeys {
172172
*/
173173
public static final TypedKey<Enchantment> LUCK_OF_THE_SEA = create(key("luck_of_the_sea"));
174174

175+
/**
176+
* {@code minecraft:lunge}
177+
*
178+
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
179+
*/
180+
public static final TypedKey<Enchantment> LUNGE = create(key("lunge"));
181+
175182
/**
176183
* {@code minecraft:lure}
177184
*

0 commit comments

Comments
 (0)