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

Implement locks #13

Open
wants to merge 14 commits into
base: develop/1.14.x
Choose a base branch
from
Open

Implement locks #13

wants to merge 14 commits into from

Conversation

pupnewfster
Copy link
Member

No description provided.

} else if (object instanceof FluidState) {
return fromTags(((FluidState) object).getFluid().getTags());
}
return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Add support for EntityType tags (the final type of built in tag in MC that this doesn't already support)

Copy link
Contributor

Choose a reason for hiding this comment

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

If you're gonna do things regarding tags, you should add a way for an addon to register a Function<T,Tags>

Copy link
Member Author

Choose a reason for hiding this comment

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

By this do you mean that they would be registering a function such as Function<Item, Tag<Item>> or what do you have in mind by this.

Copy link
Member Author

Choose a reason for hiding this comment

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

For now I left a TODO to go back at some point and look into letting mods register other types of Tags as the system probably needs some work once we come up with more potential use cases.

} else if (object instanceof FluidState) {
return fromTags(((FluidState) object).getFluid().getTags());
}
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

If you're gonna do things regarding tags, you should add a way for an addon to register a Function<T,Tags>

} else if (object instanceof FluidState) {
return fromTags(((FluidState) object).getFluid().getTags());
}
return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

By this do you mean that they would be registering a function such as Function<Item, Tag<Item>> or what do you have in mind by this.

pupnewfster added a commit that referenced this pull request May 28, 2022
…has changed yet beyond fixing the compiler errors, a couple typos, moving the lock registry implementation details to not be part of the API and adjusting a couple things that check Items to check IItemProviders instead
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.

3 participants