Skip to content

Commit

Permalink
Merge pull request #4003 from SpongePowered/update/1.20.6
Browse files Browse the repository at this point in the history
Update/1.20.6
  • Loading branch information
ImMorpheus authored May 15, 2024
2 parents 7041a5c + aff621e commit b5b8bab
Show file tree
Hide file tree
Showing 329 changed files with 4,086 additions and 3,477 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-spotless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
call-check:
uses: SpongePowered/.github/.github/workflows/shared-check-spotless.yaml@master
with:
runtime_version: 17
runtime_version: 21
extra_gradle_params: "-PenableTestPlugins=true -PenableSpongeForge=true"
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/common-integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
java: [17, 21]
java: [ 21 ]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repository to use the build.gradle.kts as a hash file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/common-run-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id: setup
uses: SpongePowered/.github/.github/actions/setup-java-env@master
with:
runtime_version: 17
runtime_version: 21
publishing_branch_regex: 'api-\d+'
- name: setup / cache minecraft dependencies
uses: "actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9" # v4.0.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: setup
uses: SpongePowered/.github/.github/actions/setup-java-env@master
with:
runtime_version: 17
runtime_version: 21
- name: setup / minecraft cache
uses: "actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9" # v4.0.2
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sponge ![Java CI with Gradle](https://github.com/SpongePowered/Sponge/workflows/Java%20CI%20with%20Gradle/badge.svg?branch=api-8&event=push)
Sponge ![Java CI with Gradle](https://github.com/SpongePowered/Sponge/workflows/Java%20CI%20with%20Gradle/badge.svg?branch=api-11&event=push)
=============

The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms. It is licensed under the [MIT License].
Expand All @@ -25,7 +25,7 @@ The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms


## Prerequisites
* [Java] 8
* [Java] 21

## Clone
The following steps will ensure your project is cloned properly.
Expand Down
2 changes: 1 addition & 1 deletion SpongeAPI
Submodule SpongeAPI updated 58 files
+1 −1 .github/workflows/check-spotless.yaml
+1 −1 .github/workflows/check-style.yaml
+1 −1 .github/workflows/ci.yaml
+3 −3 README.md
+1 −1 build.gradle.kts
+1 −1 gradle.properties
+1 −1 src/ap/java/org/spongepowered/plugin/processor/ListenerProcessor.java
+8 −0 src/main/java/org/spongepowered/api/advancement/criteria/trigger/Triggers.java
+4 −0 src/main/java/org/spongepowered/api/block/BlockTypes.java
+2 −0 src/main/java/org/spongepowered/api/block/entity/BlockEntityTypes.java
+3 −2 src/main/java/org/spongepowered/api/data/meta/BannerPatternLayer.java
+9 −7 src/main/java/org/spongepowered/api/data/type/ArmorMaterials.java
+48 −48 src/main/java/org/spongepowered/api/data/type/BannerPatternShapes.java
+0 −1 src/main/java/org/spongepowered/api/effect/particle/ParticleOptions.java
+20 −4 src/main/java/org/spongepowered/api/effect/particle/ParticleTypes.java
+12 −0 src/main/java/org/spongepowered/api/effect/potion/PotionEffectTypes.java
+138 −2 src/main/java/org/spongepowered/api/effect/sound/SoundTypes.java
+17 −1 src/main/java/org/spongepowered/api/entity/attribute/type/AttributeTypes.java
+3 −3 src/main/java/org/spongepowered/api/entity/living/player/server/ServerPlayer.java
+2 −0 src/main/java/org/spongepowered/api/event/cause/entity/damage/DamageTypes.java
+101 −19 src/main/java/org/spongepowered/api/event/network/ServerSideConnectionEvent.java
+38 −2 src/main/java/org/spongepowered/api/item/ItemTypes.java
+7 −6 src/main/java/org/spongepowered/api/item/enchantment/EnchantmentTypes.java
+8 −2 src/main/java/org/spongepowered/api/item/potion/PotionTypes.java
+0 −43 src/main/java/org/spongepowered/api/map/decoration/MapDecorationBannerType.java
+10 −2 src/main/java/org/spongepowered/api/map/decoration/MapDecorationType.java
+77 −0 src/main/java/org/spongepowered/api/network/ClientConnectionState.java
+10 −0 src/main/java/org/spongepowered/api/network/EngineConnection.java
+92 −0 src/main/java/org/spongepowered/api/network/EngineConnectionState.java
+85 −0 src/main/java/org/spongepowered/api/network/EngineConnectionStates.java
+0 −67 src/main/java/org/spongepowered/api/network/EngineConnectionTypes.java
+0 −42 src/main/java/org/spongepowered/api/network/LocalPlayerConnection.java
+0 −41 src/main/java/org/spongepowered/api/network/PlayerConnection.java
+7 −0 src/main/java/org/spongepowered/api/network/RemoteConnection.java
+41 −12 src/main/java/org/spongepowered/api/network/ServerConnectionState.java
+0 −8 src/main/java/org/spongepowered/api/network/ServerSideConnection.java
+2 −2 src/main/java/org/spongepowered/api/network/channel/Channel.java
+13 −12 src/main/java/org/spongepowered/api/network/channel/ChannelExceptionHandler.java
+8 −31 src/main/java/org/spongepowered/api/network/channel/packet/HandlerPacketBinding.java
+1 −1 src/main/java/org/spongepowered/api/network/channel/packet/PacketChannel.java
+5 −5 src/main/java/org/spongepowered/api/network/channel/packet/PacketHandler.java
+5 −5 src/main/java/org/spongepowered/api/network/channel/packet/RequestPacketHandler.java
+7 −7 src/main/java/org/spongepowered/api/network/channel/packet/ResponsePacketHandler.java
+16 −61 src/main/java/org/spongepowered/api/network/channel/packet/TransactionalPacketBinding.java
+1 −0 src/main/java/org/spongepowered/api/network/channel/packet/basic/BasicPacketChannel.java
+5 −14 src/main/java/org/spongepowered/api/network/channel/raw/handshake/RawHandshakeDataChannel.java
+5 −4 src/main/java/org/spongepowered/api/network/channel/raw/handshake/RawHandshakeDataRequestHandler.java
+8 −27 src/main/java/org/spongepowered/api/network/channel/raw/play/RawPlayDataChannel.java
+5 −5 src/main/java/org/spongepowered/api/network/channel/raw/play/RawPlayDataHandler.java
+4 −3 src/main/java/org/spongepowered/api/registry/RegistryTypes.java
+4 −0 src/main/java/org/spongepowered/api/state/BooleanStateProperties.java
+4 −0 src/main/java/org/spongepowered/api/state/EnumStateProperties.java
+18 −0 src/main/java/org/spongepowered/api/tag/BlockTypeTags.java
+4 −0 src/main/java/org/spongepowered/api/tag/DamageTypeTags.java
+24 −0 src/main/java/org/spongepowered/api/tag/EntityTypeTags.java
+99 −3 src/main/java/org/spongepowered/api/tag/ItemTypeTags.java
+7 −0 src/main/java/org/spongepowered/api/world/WorldTypeTemplate.java
+2 −0 src/main/java/org/spongepowered/api/world/gamerule/GameRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,12 @@
import net.minecraft.world.entity.animal.horse.Markings;
import net.minecraft.world.entity.animal.horse.Variant;
import net.minecraft.world.entity.vehicle.Boat;
import net.minecraft.world.flag.FeatureFlags;
import net.minecraft.world.item.ArmorMaterials;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.item.FireworkRocketItem;
import net.minecraft.world.item.ItemDisplayContext;
import net.minecraft.world.item.Rarity;
import net.minecraft.world.level.DataPackConfig;
import net.minecraft.world.item.component.FireworkExplosion;
import net.minecraft.world.level.GameRules;
import net.minecraft.world.level.WorldDataConfiguration;
import net.minecraft.world.level.block.state.properties.BambooLeaves;
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument;
import org.tinylog.Logger;
Expand Down Expand Up @@ -147,7 +145,7 @@ private static Pair<RegistryAccess.Frozen, ReloadableServerResources> loadVanill
// and call to WorldStem.load in net.minecraft.server.Main
// We don't currently try to load any datapacks here
final var packRepository = ServerPacksSource.createVanillaTrustedRepository();
MinecraftServer.configurePackRepository(packRepository, DataPackConfig.DEFAULT, /* safeMode = */ false, FeatureFlags.DEFAULT_FLAGS);
MinecraftServer.configurePackRepository(packRepository, WorldDataConfiguration.DEFAULT, /* safeMode = */ false, true);
final CloseableResourceManager resourceManager = new MultiPackResourceManager(PackType.SERVER_DATA, packRepository.openAllSelected());

// WorldLoader.load
Expand All @@ -165,7 +163,7 @@ private static Pair<RegistryAccess.Frozen, ReloadableServerResources> loadVanill
final RegistryAccess.Frozen compositeRegistries = withDimensions.getAccessForLoading(RegistryLayer.RELOADABLE);
final var resourcesFuture = ReloadableServerResources.loadResources(
resourceManager,
compositeRegistries,
withDimensions,
packRepository.getRequestedFeatureFlags(),
CommandSelection.ALL,
2, // functionPermissionLevel
Expand All @@ -176,7 +174,7 @@ private static Pair<RegistryAccess.Frozen, ReloadableServerResources> loadVanill
resourceManager.close();
}
}).thenApply(resources -> {
resources.updateRegistryTags(compositeRegistries);
resources.updateRegistryTags();
return resources;
});

Expand Down Expand Up @@ -221,8 +219,8 @@ private static List<Generator> generators(final Context context) {
new EnumEntriesValidator<>(
"item",
"FireworkShapes",
FireworkRocketItem.Shape.class,
"getName",
FireworkExplosion.Shape.class,
"getSerializedName",
"sponge"
),
new EnumEntriesValidator<>(
Expand All @@ -239,12 +237,12 @@ private static List<Generator> generators(final Context context) {
"getName",
"sponge"
),
new EnumEntriesValidator<>(
new RegistryEntriesGenerator<>(
"data.type",
"ArmorMaterials",
ArmorMaterials.class,
"getName",
"sponge"
"ARMOR_MATERIAL",
context.relativeClass("data.type", "ArmorMaterial"),
Registries.ARMOR_MATERIAL
),
new EnumEntriesValidator<>(
"data.type",
Expand Down Expand Up @@ -576,7 +574,8 @@ private static List<Generator> generators(final Context context) {
),
new BlockStateDataProviderGenerator(),
new BlockStatePropertiesGenerator(),
new BlockStatePropertyKeysGenerator(),
// TODO fix me
//new BlockStatePropertyKeysGenerator(),
new RegistryEntriesGenerator<>(
"world.generation.feature",
"PlacedFeatures",
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ projectDescription=The SpongeAPI implementation targeting vanilla Minecraft and

mixinConfigs=mixins.sponge.accessors.json,mixins.sponge.api.json,mixins.sponge.concurrent.json,mixins.sponge.core.json,\
mixins.sponge.entityactivation.json,mixins.sponge.exploit.json,mixins.sponge.inventory.json,mixins.sponge.movementcheck.json,\
mixins.sponge.tracker.json,mixins.sponge.ipforward.json,mixins.sponge.optimization.json,mixins.sponge.bugfix.json
mixins.sponge.tracker.json,mixins.sponge.ipforward.json,mixins.sponge.optimization.json
superClassChanges=common.superclasschange

minecraftVersion=1.20.4
minecraftVersion=1.20.6
recommendedVersion=0-SNAPSHOT

org.gradle.dependency.verification.console=verbose
Expand Down
Loading

0 comments on commit b5b8bab

Please sign in to comment.