This file contains hidden or 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
#usage: | |
#install python 3ish | |
#open cmd | |
#run `python.recordCodecBuilderBuilder.py` | |
#enter name of class, e.g. Thing | |
#enter fields one line at a time in the format | |
#FieldType field_name FieldType.CODEC | |
#java class is output to rcbb_Thing.txt | |
classTemplate = ''' |
This file contains hidden or 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
// Loads files in the format {modid}-{version}.jar, MC version optional but picky about hyphens. | |
// See the regex pattern. | |
def getModVersion(filename) { | |
// println(filename); | |
def pattern = /^(?<modid>[^-]+)(?:-(?<mcversion>[0-9.]+))?(?:-(?<modver>[0-9.\-]+))\.jar$/; | |
def matcher = filename =~ pattern | |
def found = matcher.find() |
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers: