Skip to content

Expose gravity and air drag - #14196

Open
Seggan wants to merge 1 commit into
PaperMC:mainfrom
Seggan:api/gravity-and-air-drag
Open

Expose gravity and air drag#14196
Seggan wants to merge 1 commit into
PaperMC:mainfrom
Seggan:api/gravity-and-air-drag

Conversation

@Seggan

@Seggan Seggan commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Exposes the getDefaultGravity, getGravity, and getAirDrag NMS methods in NMS Entity

@Seggan
Seggan requested a review from a team as a code owner August 18, 2026 19:08
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Aug 18, 2026
double getDefaultGravity();

/**
* Returns the acceleration due to gravity (in blocks per tick). If {@link Entity#hasGravity()} is true, returns 0.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
* Returns the acceleration due to gravity (in blocks per tick). If {@link Entity#hasGravity()} is true, returns 0.
* Returns the acceleration due to gravity (in blocks per tick). If {@link Entity#hasGravity()} is false, returns 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

2 participants