Skip to content

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.

4 participants