Skip to content

Commit b6d8da6

Browse files
committed
feat(minecraft): merge 1.21.11 updates
Merges #2606 Signed-off-by: Gabriel Harris-Rouquette <[email protected]>
2 parents 717e460 + 307eddf commit b6d8da6

File tree

26 files changed

+460
-80
lines changed

26 files changed

+460
-80
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=17.0.0-SNAPSHOT
2+
version=18.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/advancement/criteria/trigger/Triggers.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public final class Triggers {
130130

131131
public static final DefaultedRegistryReference<Trigger<?>> SLIDE_DOWN_BLOCK = Triggers.key(ResourceKey.minecraft("slide_down_block"));
132132

133+
public static final DefaultedRegistryReference<Trigger<?>> SPEAR_MOBS = Triggers.key(ResourceKey.minecraft("spear_mobs"));
134+
133135
public static final DefaultedRegistryReference<Trigger<?>> STARTED_RIDING = Triggers.key(ResourceKey.minecraft("started_riding"));
134136

135137
public static final DefaultedRegistryReference<Trigger<?>> SUMMONED_ENTITY = Triggers.key(ResourceKey.minecraft("summoned_entity"));

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public final class Keys {
410410
* fade over time and the entity will become peaceful again once its anger
411411
* reaches its minimum.</p>
412412
*/
413-
public static final Key<Value<Integer>> ANGER_LEVEL = Keys.key(ResourceKey.sponge("anger_level"), Integer.class);
413+
public static final Key<Value<Long>> ANGER_LEVEL = Keys.key(ResourceKey.sponge("anger_level"), Long.class);
414414

415415
/**
416416
* The set of {@link PotionEffect}s applied on use of an {@link ItemStack}.

src/main/java/org/spongepowered/api/data/type/ItemActionType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
* Represents a possible type of {@link ItemAction}.
3232
*/
3333
@CatalogedBy(ItemActionTypes.class)
34-
public interface ItemActionType extends DefaultedRegistryValue {
34+
public interface ItemActionType extends DefaultedRegistryValue<ItemActionType> {
3535
}

src/main/java/org/spongepowered/api/effect/potion/PotionEffectTypes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public final class PotionEffectTypes {
4646

4747
public static final DefaultedRegistryReference<PotionEffectType> BLINDNESS = PotionEffectTypes.key(ResourceKey.minecraft("blindness"));
4848

49+
public static final DefaultedRegistryReference<PotionEffectType> BREATH_OF_THE_NAUTILUS = PotionEffectTypes.key(ResourceKey.minecraft("breath_of_the_nautilus"));
50+
4951
public static final DefaultedRegistryReference<PotionEffectType> CONDUIT_POWER = PotionEffectTypes.key(ResourceKey.minecraft("conduit_power"));
5052

5153
public static final DefaultedRegistryReference<PotionEffectType> DARKNESS = PotionEffectTypes.key(ResourceKey.minecraft("darkness"));

src/main/java/org/spongepowered/api/effect/sound/SoundTypes.java

Lines changed: 134 additions & 0 deletions
Large diffs are not rendered by default.

src/main/java/org/spongepowered/api/entity/Angerable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ default Value.Mutable<Boolean> angry() {
4343
*
4444
* @return The anger level, decays over time
4545
*/
46-
default Value.Mutable<Integer> angerLevel() {
46+
default Value.Mutable<Long> angerLevel() {
4747
return this.requireValue(Keys.ANGER_LEVEL).asMutable();
4848
}
4949
}

src/main/java/org/spongepowered/api/entity/EntityTypes.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import org.spongepowered.api.entity.living.animal.Goat;
4949
import org.spongepowered.api.entity.living.animal.HappyGhast;
5050
import org.spongepowered.api.entity.living.animal.Hoglin;
51+
import org.spongepowered.api.entity.living.animal.Nautilus;
5152
import org.spongepowered.api.entity.living.animal.Ocelot;
5253
import org.spongepowered.api.entity.living.animal.Panda;
5354
import org.spongepowered.api.entity.living.animal.Parrot;
@@ -59,11 +60,13 @@
5960
import org.spongepowered.api.entity.living.animal.Strider;
6061
import org.spongepowered.api.entity.living.animal.Turtle;
6162
import org.spongepowered.api.entity.living.animal.Wolf;
63+
import org.spongepowered.api.entity.living.animal.ZombieNautilus;
64+
import org.spongepowered.api.entity.living.animal.camel.Camel;
65+
import org.spongepowered.api.entity.living.animal.camel.CamelHusk;
6266
import org.spongepowered.api.entity.living.animal.cow.Cow;
6367
import org.spongepowered.api.entity.living.animal.cow.Mooshroom;
6468
import org.spongepowered.api.entity.living.animal.frog.Frog;
6569
import org.spongepowered.api.entity.living.animal.frog.Tadpole;
66-
import org.spongepowered.api.entity.living.animal.horse.Camel;
6770
import org.spongepowered.api.entity.living.animal.horse.Donkey;
6871
import org.spongepowered.api.entity.living.animal.horse.Horse;
6972
import org.spongepowered.api.entity.living.animal.horse.Mule;
@@ -108,6 +111,7 @@
108111
import org.spongepowered.api.entity.living.monster.raider.illager.spellcaster.Evoker;
109112
import org.spongepowered.api.entity.living.monster.raider.illager.spellcaster.Illusioner;
110113
import org.spongepowered.api.entity.living.monster.skeleton.Bogged;
114+
import org.spongepowered.api.entity.living.monster.skeleton.Parched;
111115
import org.spongepowered.api.entity.living.monster.skeleton.Skeleton;
112116
import org.spongepowered.api.entity.living.monster.skeleton.Stray;
113117
import org.spongepowered.api.entity.living.monster.skeleton.WitherSkeleton;
@@ -208,6 +212,8 @@ public final class EntityTypes {
208212

209213
public static final DefaultedRegistryReference<EntityType<Camel>> CAMEL = EntityTypes.key(ResourceKey.minecraft("camel"));
210214

215+
public static final DefaultedRegistryReference<EntityType<CamelHusk>> CAMEL_HUSK = EntityTypes.key(ResourceKey.minecraft("camel_husk"));
216+
211217
public static final DefaultedRegistryReference<EntityType<Cat>> CAT = EntityTypes.key(ResourceKey.minecraft("cat"));
212218

213219
public static final DefaultedRegistryReference<EntityType<CaveSpider>> CAVE_SPIDER = EntityTypes.key(ResourceKey.minecraft("cave_spider"));
@@ -348,6 +354,8 @@ public final class EntityTypes {
348354

349355
public static final DefaultedRegistryReference<EntityType<Mule>> MULE = EntityTypes.key(ResourceKey.minecraft("mule"));
350356

357+
public static final DefaultedRegistryReference<EntityType<Nautilus>> NAUTILUS = EntityTypes.key(ResourceKey.minecraft("nautilus"));
358+
351359
public static final DefaultedRegistryReference<EntityType<Boat>> OAK_BOAT = EntityTypes.key(ResourceKey.minecraft("oak_boat"));
352360

353361
public static final DefaultedRegistryReference<EntityType<ChestBoat>> OAK_CHEST_BOAT = EntityTypes.key(ResourceKey.minecraft("oak_chest_boat"));
@@ -364,6 +372,8 @@ public final class EntityTypes {
364372

365373
public static final DefaultedRegistryReference<EntityType<Panda>> PANDA = EntityTypes.key(ResourceKey.minecraft("panda"));
366374

375+
public static final DefaultedRegistryReference<EntityType<Parched>> PARCHED = EntityTypes.key(ResourceKey.minecraft("parched"));
376+
367377
public static final DefaultedRegistryReference<EntityType<Parrot>> PARROT = EntityTypes.key(ResourceKey.minecraft("parrot"));
368378

369379
public static final DefaultedRegistryReference<EntityType<Phantom>> PHANTOM = EntityTypes.key(ResourceKey.minecraft("phantom"));
@@ -472,6 +482,8 @@ public final class EntityTypes {
472482

473483
public static final DefaultedRegistryReference<EntityType<ZombieHorse>> ZOMBIE_HORSE = EntityTypes.key(ResourceKey.minecraft("zombie_horse"));
474484

485+
public static final DefaultedRegistryReference<EntityType<ZombieNautilus>> ZOMBIE_NAUTILUS = EntityTypes.key(ResourceKey.minecraft("zombie_nautilus"));
486+
475487
public static final DefaultedRegistryReference<EntityType<ZombieVillager>> ZOMBIE_VILLAGER = EntityTypes.key(ResourceKey.minecraft("zombie_villager"));
476488

477489
public static final DefaultedRegistryReference<EntityType<ZombifiedPiglin>> ZOMBIFIED_PIGLIN = EntityTypes.key(ResourceKey.minecraft("zombified_piglin"));
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) SpongePowered <https://www.spongepowered.org>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package org.spongepowered.api.entity.living.animal;
26+
27+
/**
28+
* A friendly {@link NautilusLike} entity.
29+
* <p>
30+
* See <a href="https://minecraft.wiki/w/Nautilus">Minecraft Wiki</a>
31+
*/
32+
public interface Nautilus extends NautilusLike {
33+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) SpongePowered <https://www.spongepowered.org>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package org.spongepowered.api.entity.living.animal;
26+
27+
import org.spongepowered.api.item.inventory.Carrier;
28+
29+
/**
30+
* Represents a Nautilus-like entity, all of which can be mounted.
31+
* <p>
32+
* See <a href="https://minecraft.wiki/w/Nautilus">Minecraft Wiki</a>
33+
*/
34+
public interface NautilusLike extends TameableAnimal, Carrier {
35+
}

0 commit comments

Comments
 (0)