Skip to content

pattern overlays#879

Merged
Robotgiggle merged 5 commits into
mainfrom
pattern-overlays
May 9, 2026
Merged

pattern overlays#879
Robotgiggle merged 5 commits into
mainfrom
pattern-overlays

Conversation

@SamsTheNerd
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 ?

@object-Object object-Object force-pushed the main branch 4 times, most recently from 107cf95 to 7202ed7 Compare November 22, 2025 22:04
Copy link
Copy Markdown
Member

@Robotgiggle Robotgiggle left a comment

Choose a reason for hiding this comment

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

Made the change Alwinfy suggested - LGTM

@Robotgiggle Robotgiggle enabled auto-merge May 9, 2026 23:20
@Robotgiggle Robotgiggle added this pull request to the merge queue May 9, 2026
Merged via the queue into main with commit 89c451a May 9, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants