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

Update LlamaEntity.mapping #684

Merged
merged 1 commit into from
May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mappings/net/minecraft/entity/passive/LlamaEntity.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ CLASS arv net/minecraft/entity/passive/LlamaEntity
ARG 0 color
METHOD u setVariant (I)V
METHOD v setStrength (I)V
METHOD h spitAt (Laio;)V
ARG 1 target
METHOD a breedWith (Laid;)Larv;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like createChild to me by param and return types.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is already a different function literally called createChild, which is used in this function. Also, there is a function canBreedWith.

Copy link
Contributor

Choose a reason for hiding this comment

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

what does this do in addition to calling create child?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

createChild gives a plain new Entity instance. This function, however, does the inherit-stats-from-parents thing and gives the child the color of one of the parents. One parent is the instance, the function is called on and the other is the parameter.

ARG 1 mate