-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for crossversion Component
- Loading branch information
1 parent
7b0677e
commit 4fe39a3
Showing
4 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
crossversion/common/src/main/java/me/pieking1215/invmove/module/CVComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package me.pieking1215.invmove.module; | ||
|
||
public class CVComponent { | ||
public boolean translate = false; | ||
public String text; | ||
|
||
public CVComponent(boolean translate, String text) { | ||
this.translate = translate; | ||
this.text = text; | ||
} | ||
|
||
public static CVComponent literal(String text) { | ||
return new CVComponent(false, text); | ||
} | ||
|
||
public static CVComponent translated(String text) { | ||
return new CVComponent(true, text); | ||
} | ||
} |
6 changes: 2 additions & 4 deletions
6
crossversion/common/src/main/java/me/pieking1215/invmove/module/Module.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters