Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation marker fixes, javadoc cleanup, and LivingChangeTargetEvent methods renamed #1147

Merged

Conversation

TelepathicGrunt
Copy link
Contributor

@TelepathicGrunt TelepathicGrunt commented Jun 19, 2024

Closes #655

And will fix some Javadoc to make some people happier lol.

remember, it is // Neo:. Not // NEO:. And do not do <p></p>. Do just <p>. And no more NEOFORGE START NEOFORGE END markers.

LivingChangeTargetEvent has its methods renamed to be more clear of what they represent. Also noticed a missing null check in the patch for that which could cause issues later if null got saved to the brain

@TelepathicGrunt TelepathicGrunt added cleanup Change that isn't an enhancement or a bug fix 1.21 Targeted at Minecraft 1.21 labels Jun 19, 2024
@TelepathicGrunt TelepathicGrunt self-assigned this Jun 19, 2024
@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented Jun 19, 2024

  • Publish PR to GitHub Packages

Last commit published: 56369ff1179473a373f801148808bdde2f766836.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #1147' // https://github.com/neoforged/NeoForge/pull/1147
        url 'https://prmaven.neoforged.net/NeoForge/pr1147'
        content {
            includeModule('net.neoforged', 'neoforge')
            includeModule('net.neoforged', 'testframework')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr1147.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr1147
cd NeoForge-pr1147
curl -L https://prmaven.neoforged.net/NeoForge/pr1147/net/neoforged/neoforge/21.0.96-beta-pr-1147-MarkerAndJavadocCleanup/mdk-pr1147.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip

To test a production environment, you can download the installer from here.

@TelepathicGrunt TelepathicGrunt changed the title [No CI] Annotation marker fixes and javadoc cleanup Annotation marker fixes and javadoc cleanup Jun 19, 2024
@TelepathicGrunt TelepathicGrunt added the breaking change Breaks binary compatibility label Jun 25, 2024
@neoforged-compatibility-checks
Copy link

neoforged-compatibility-checks bot commented Jun 25, 2024

@TelepathicGrunt, this PR introduces breaking changes.
Fortunately, this project is currently accepting breaking changes, but if they are not intentional, please revert them.
Last checked commit: 56369ff1179473a373f801148808bdde2f766836.

neoforge (:neoforge)

  • net/neoforged/neoforge/event/entity/living/LivingChangeTargetEvent
    • setNewTarget(Lnet/minecraft/world/entity/LivingEntity;)V: ❗ API method was removed
    • getOriginalTarget()Lnet/minecraft/world/entity/LivingEntity;: ❗ API method was removed
    • getNewTarget()Lnet/minecraft/world/entity/LivingEntity;: ❗ API method was removed

@TelepathicGrunt TelepathicGrunt changed the title Annotation marker fixes and javadoc cleanup Annotation marker fixes, javadoc cleanup, and LivingChangeTargetEvent methods renamed Jul 2, 2024
shartte
shartte previously approved these changes Jul 5, 2024
@TelepathicGrunt TelepathicGrunt requested a review from sciwhiz12 July 7, 2024 13:14
sciwhiz12
sciwhiz12 previously approved these changes Jul 7, 2024
Copy link
Member

@sciwhiz12 sciwhiz12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge when ready.

@sciwhiz12 sciwhiz12 linked an issue Jul 7, 2024 that may be closed by this pull request
@TelepathicGrunt TelepathicGrunt requested a review from sciwhiz12 July 7, 2024 14:01
sciwhiz12
sciwhiz12 previously approved these changes Jul 7, 2024
@TelepathicGrunt TelepathicGrunt merged commit b6c01b8 into neoforged:1.21.x Jul 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21 Targeted at Minecraft 1.21 breaking change Breaks binary compatibility cleanup Change that isn't an enhancement or a bug fix
Projects
None yet
4 participants