-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Entity docs #171
base: main
Are you sure you want to change the base?
Entity docs #171
Conversation
Co-authored-by: Dennis C <[email protected]>
Co-authored-by: Dennis C <[email protected]>
Co-authored-by: ChampionAsh5357 <[email protected]>
@IchHabeHunger54, this pull request has conflicts, please resolve them for this PR to move forward. |
# Conflicts: # docs/resources/client/models/bakedmodel.md # docs/resources/server/conditions.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I give you...more comments!
|
||
As such, vanilla introduces a few systems to help with that. These systems generally exist in parallel and can be replaced with one another, this is due to legacy reasons. | ||
|
||
## `SynchedEntityData` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to unresolve and more specifically say that if you need to sync additional data from the entity, such as for data attachments, then you should create your own network packet to sync manually as required.
You can link to your data attachments section below.
if (renderer != null) { | ||
// Add the layer to the renderer. Like above, construct a new MyRenderLayer. | ||
// The EntityModelSet can be retrieved from the event through #getEntityModels. | ||
renderer.addLayer(new MyRenderLayer(renderer, event.getEntityModels())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would not compile due to the generics.
// Get the associated PlayerRenderer. | ||
if (event.getSkin(skin) instanceof PlayerRenderer playerRenderer) { | ||
// Add the layer to the renderer. | ||
playerRenderer.addLayer(new MyRenderLayer(playerRenderer, event.getEntityModels())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would not compile due to the generics differing between the layer and the renderer.
@IchHabeHunger54, this pull request has conflicts, please resolve them for this PR to move forward. |
# Conflicts: # docs/worldgen/biomemodifier.md
Adds some long-needed entity documentation. Supersedes #15 and #95 . Closes #82 . Closes #90 . This PR:
Preview URL: https://pr-171.neoforged-docs-previews.pages.dev