mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
- Fixed some non-static expansion methods - Fixed scripts not reloading properly - Implemented mod support build system - Fixed recipe removal breaking on recipes without predefined output - Fixed NPE on parsing a bracket expression that doesn't exist - now prints an appropriate error
25 lines
565 B
Java
25 lines
565 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package minetweaker.expand;
|
|
|
|
import minetweaker.api.data.DataBool;
|
|
import minetweaker.api.data.IData;
|
|
import stanhebben.zenscript.annotations.ZenCaster;
|
|
import stanhebben.zenscript.annotations.ZenExpansion;
|
|
|
|
/**
|
|
*
|
|
* @author Stanneke
|
|
*/
|
|
@ZenExpansion("bool")
|
|
public class ExpandBool {
|
|
@ZenCaster
|
|
public static IData asData(boolean value) {
|
|
return new DataBool(value);
|
|
}
|
|
}
|