Skip to content

Add Llama caravan events#9890

Closed
SplotyCode wants to merge 1 commit into
PaperMC:masterfrom
SplotyCode:llama-events
Closed

Add Llama caravan events#9890
SplotyCode wants to merge 1 commit into
PaperMC:masterfrom
SplotyCode:llama-events

Conversation

@SplotyCode
Copy link
Copy Markdown
Contributor

No description provided.

@SplotyCode SplotyCode requested a review from a team as a code owner October 30, 2023 02:43
Comment thread patches/api/0443-Add-Llama-caravan-events.patch Outdated
Comment thread patches/api/0443-Add-Llama-caravan-events.patch Outdated
Comment thread patches/server/1044-Add-Llama-caravan-events.patch
Comment thread patches/server/1044-Add-Llama-caravan-events.patch
Comment thread patches/server/1044-Add-Llama-caravan-events.patch Outdated
Comment on lines +70 to +88
+ // Paper start
+ @Override
+ public org.bukkit.craftbukkit.entity.CraftLlama getBukkitEntity() {
+ return (org.bukkit.craftbukkit.entity.CraftLlama) super.getBukkitEntity();
+ }
+ // Paper end
+
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure this is worth not just having 2 casts when the llama is passed to the event constructor. I don't think we do this for other similar situations.

Copy link
Copy Markdown
Contributor Author

@SplotyCode SplotyCode Oct 30, 2023

Choose a reason for hiding this comment

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

I dont really have a strong opinion on this. In our CraftLlama we could then also remove some casts and for plugin devs it is always tedious to use ((X) ((CraftX) x).getHandle()).methodCall()
image
We can also use casts but even with var it looks quite ugly using the fqn. Do you have fears of merge conflicts with upstream?

Comment thread patches/api/0443-Add-Llama-caravan-events.patch
Comment thread patches/api/0443-Add-Llama-caravan-events.patch
@SplotyCode SplotyCode force-pushed the llama-events branch 2 times, most recently from bf363e1 to c9c18e6 Compare October 30, 2023 03:04
@Warriorrrr Warriorrrr moved this from Awaiting review to Waiting For Author in Paper PR Queue Mar 5, 2025
@kennytv kennytv added the pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch label Mar 23, 2025
@kennytv kennytv deleted the branch PaperMC:master March 23, 2025 19:15
@kennytv kennytv closed this Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pre-softspoon: never rebased Pre-hardfork pull requests that were not re-opened with the new main branch pre-softspoon

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants