-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reformatted code, added new chat tags
- Loading branch information
Showing
8 changed files
with
533 additions
and
1,319 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,18 +1,36 @@ | ||
package dev.fire.config; | ||
|
||
import com.google.gson.JsonObject; | ||
import net.minecraft.network.message.SentMessage; | ||
|
||
public class ChatTag { | ||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
public class ChatTag implements Serializable { | ||
public int BracketColor; | ||
public int SymbolColor; | ||
public int TextColor; | ||
public String Symbol; | ||
public String TextContent; | ||
public ChatTag(int bracketcolor, int symbolcolor, int textcolor, String sym, String textcontent) { | ||
BracketColor = bracketcolor; | ||
SymbolColor = symbolcolor; | ||
TextColor = textcolor; | ||
Symbol = sym; | ||
TextContent = textcontent; | ||
public boolean addBoldSpace; | ||
public ChatTag(int bracketcolor, int symbolcolor, int textcolor, String sym, String textcontent, boolean addBoldSpace) { | ||
this.BracketColor = bracketcolor; | ||
this.SymbolColor = symbolcolor; | ||
this.TextColor = textcolor; | ||
this.Symbol = sym; | ||
this.TextContent = textcontent; | ||
this.addBoldSpace = addBoldSpace; | ||
} | ||
|
||
public String toJson(){ | ||
JsonObject object = new JsonObject(); | ||
object.addProperty("BracketColor", BracketColor); | ||
object.addProperty("SymbolColor", SymbolColor); | ||
object.addProperty("TextColor", TextColor); | ||
object.addProperty("Symbol", Symbol); | ||
object.addProperty("TextContent", TextContent); | ||
object.addProperty("addBoldSpace", addBoldSpace); | ||
return object.toString(); | ||
} | ||
|
||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package dev.fire.config; | ||
|
||
public class DfrevertException extends Exception { | ||
public DfrevertException(String errorMessage) { | ||
super(errorMessage); | ||
} | ||
} |
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