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
@object-Object object-Object deleted the pattern-overlays branch May 24, 2026 02:59
ChuijkYahus pushed a commit to ChuijkYahus/HexMod that referenced this pull request May 28, 2026
…s#1043)

The current implementation of the pattern overlay feature added in FallingColors#879
relies on a method in Inline that was renamed in the 1.2.0 update. Thus,
if anyone uses a version of Inline beyond that point with the current
version of hex, it will break. This PR updates hex's Inline dependency
to the latest version and updates the relevant methods to their new
names to prevent that from happening, and also updates a bunch of core
libraries which are required for the new Inline version.

Note that if this PR does _not_ get merged before the 0.11.4 release, we
should instead change the Inline dependency in `fabric.mod.json`
(fabric) and `mods.toml` (forge) to explicitly exclude Inline versions
1.2.0 and onwards.

Also note that the new Kotlin version (2.2.21) now gives a bunch of
warnings about the use of public `copy()` methods on data classes with
private constructors, since that functionality will be removed in future
versions of Kotlin. More info can be found
[here](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-consistent-copy-visibility/)
and
[here](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-exposed-copy-visibility/).
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