Skip to content

Introduce TeleportBehavior - #2614

Open
whimxiqal wants to merge 2 commits into
SpongePowered:api-12from
whimxiqal:whimxiqal/teleporter-behavior
Open

Introduce TeleportBehavior#2614
whimxiqal wants to merge 2 commits into
SpongePowered:api-12from
whimxiqal:whimxiqal/teleporter-behavior

Conversation

@whimxiqal

Copy link
Copy Markdown

This is to introduce teleport behavior on PortalLogic so that it has an understanding of what to do with the block that is discovered as part of the destination portal. In vanilla, this block is used to linearly interpolate the spot in the portal that matches relatively to the entry point in the entrance portal. This is the default behavior of this PortalLogic in my followup implementation PR.

@whimxiqal

whimxiqal commented Aug 16, 2026

Copy link
Copy Markdown
Author

I'm open to suggestions here. I've the API for the PortalLogic and its Builder to be a bit obtuse. The "composite" nature of what gets ultimately built makes it so as a consumer, I have to build a builder and then tell it to fallback to the appropriate portal logic depending on which type of portal I'm going through, even if I want to just override a single PortalLogic component. In what cases would you have more than two portals added to the rules set of SpongePortalLogicBuilder, potentially one for overridden functionality and the other as a fallback? And the fallback should be discoverable by the event depending on which type of portal kicked off the event.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant