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

Query API #5

Open
alikindsys opened this issue Feb 4, 2024 · 0 comments
Open

Query API #5

alikindsys opened this issue Feb 4, 2024 · 0 comments

Comments

@alikindsys
Copy link
Contributor

We need to know, given a block position:

  • The "lowest" zone in the hierarchy that occupies that position. getLowestZone(BlockPos) : Zone
  • The zone hierarchy that is present on this block. getZoneGraph(BlockPos) : ZoneGraph
  • The "highest" zone in the hierarchy that occupies that posion. getHighestZone(BlockPos) : Zone
  • If there is a zone that occupies that block. isOccupied(BlockPos): Boolean

Given an entity:

  • If that entity is inside a zone. isInside(Entity): Boolean
  • The "lowest" zone that entity is inside. getLowestZone(Entity): Zone
  • The zone hierarchy that entity is interacting with.getZoneGraph(Entity) : ZoneGraph
  • The "highest" zone in the hierarchy that entity is inside. getHighestZone(Entity) : Zone

This may get expanded or reduced

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

No branches or pull requests

1 participant