File tree 2 files changed +5
-3
lines changed
src/main/java/de/hysky/skyblocker
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
import de .hysky .skyblocker .config .SkyblockerConfigManager ;
4
4
import de .hysky .skyblocker .utils .render .gui .AbstractContainerMatcher ;
5
5
import net .minecraft .screen .slot .Slot ;
6
+ import org .intellij .lang .annotations .Language ;
6
7
import org .jetbrains .annotations .NotNull ;
7
8
8
9
import java .util .List ;
@@ -17,7 +18,7 @@ public abstract class SlotTextAdder extends AbstractContainerMatcher {
17
18
*
18
19
* @see #SlotTextAdder(Pattern)
19
20
*/
20
- protected SlotTextAdder (@ NotNull String titlePattern ) {
21
+ protected SlotTextAdder (@ NotNull @ Language ( "RegExp" ) String titlePattern ) {
21
22
super (titlePattern );
22
23
}
23
24
Original file line number Diff line number Diff line change 1
1
package de .hysky .skyblocker .utils .render .gui ;
2
2
3
3
import de .hysky .skyblocker .skyblock .ChestValue ;
4
+ import org .jetbrains .annotations .NotNull ;
4
5
import org .jetbrains .annotations .Nullable ;
5
6
6
7
import java .util .regex .Pattern ;
@@ -14,11 +15,11 @@ public abstract class AbstractContainerMatcher {
14
15
@ Nullable
15
16
public final Pattern titlePattern ;
16
17
17
- public AbstractContainerMatcher () {
18
+ protected AbstractContainerMatcher () {
18
19
this ((Pattern ) null );
19
20
}
20
21
21
- public AbstractContainerMatcher (String titlePattern ) {
22
+ protected AbstractContainerMatcher (@ NotNull String titlePattern ) {
22
23
this (Pattern .compile (titlePattern ));
23
24
}
24
25
You can’t perform that action at this time.
0 commit comments