All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.adrodoc55.minecraft.mpl.Mpl_mpl_command Maven / Gradle / Ivy

Go to download

MPL is a language that makes it easier to write applications for Minecraft 1.9 or higher. The final result of compiling an MPL application are command blocks that can be imported into your world in various ways. MPL comes with it's own editor that supports syntax- and error-highlighting and has a built in compiler.

The newest version!
package de.adrodoc55.minecraft.mpl;

public class Mpl_mpl_command extends org.eclipse.jface.text.rules.RuleBasedScanner {
	public Mpl_mpl_command() {
		org.eclipse.jface.text.rules.Token mpl_commandToken = new org.eclipse.jface.text.rules.Token(new org.eclipse.fx.text.ui.TextAttribute("mpl.mpl_command"));
		setDefaultReturnToken(mpl_commandToken);
		org.eclipse.jface.text.rules.Token mpl_insertToken = new org.eclipse.jface.text.rules.Token(new org.eclipse.fx.text.ui.TextAttribute("mpl.mpl_insert"));
		org.eclipse.jface.text.rules.IRule[] rules = new org.eclipse.jface.text.rules.IRule[1];
		rules[0] = new org.eclipse.jface.text.rules.SingleLineRule(
			  "${"
			, "}"
			, mpl_insertToken
			, (char)0
			, false);

		setRules(rules);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy