-
Notifications
You must be signed in to change notification settings - Fork 121
Deprecate existing matchPattern method #1002
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
49ef1c2
fb095f5
0f5d773
fe48130
223f846
d2efc75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,7 @@ public static Pair<SpecialHandler, ResourceKey<SpecialHandler.Factory<?>>> match | |
| * order | ||
| * for a per-world pattern. | ||
| */ | ||
| @Deprecated | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a description to the deprecated annotation, and update the javadoc to mention the new overload?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, can you also add https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Deprecated.html#since() |
||
| public static PatternShapeMatch matchPattern(HexPattern pat, CastingEnvironment environment, | ||
| boolean checkForAlternateStrokeOrders) { | ||
| // I am PURPOSELY checking normal actions before special handlers | ||
|
|
@@ -119,6 +120,10 @@ public static PatternShapeMatch matchPattern(HexPattern pat, CastingEnvironment | |
| return new PatternShapeMatch.Nothing(); | ||
| } | ||
|
|
||
| public static PatternShapeMatch matchPattern(HexPattern pattern, CastingEnvironment environment){ | ||
|
object-Object marked this conversation as resolved.
|
||
| return matchPattern(pattern, environment, false); | ||
| } | ||
|
|
||
| @Nullable | ||
| public static HexPattern getCanonicalStrokesPerWorld(ResourceKey<ActionRegistryEntry> key, ServerLevel overworld) { | ||
| var perWorldPatterns = ScrungledPatternsSave.open(overworld); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unrelated (and the commit is from a year ago), did something weird happen with the commit history?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack I thought that got deleted when I merged with the more recent commits