Skip to content

pattern overlays #879

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

pattern overlays #879

wants to merge 1 commit into from

Conversation

SamsTheNerd
Copy link
Member

image
it does this when you shift. tested on forge and fabric, most of the work is done by inline's render hook. updated inline to be able to use it.


import java.util.function.Function;

public record HexPatternOverlayRenderer(Function<ItemStack, HexPattern> patternRetriever) implements ItemOverlayRenderer {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: why is this a record holding a FI and not just a FI itself? i.e.

@FunctionalInterface
public interface HexPatternOverlayRenderer extends ItemOverlayRenderer {
  HexPattern getPattern(ItemStack stack);
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't remember, prob just didn't think of it. Want me to change it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

Successfully merging this pull request may close these issues.

2 participants