1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import example.TestClass;
- import example.TestInterface;
-
- val instance = new TestClass("Instance");
- println("Name: " + instance.name);
- instance.dump();
-
- var generated = instance.generate();
- println(generated.getValue());
-
- class TestOperators {
- public (name as string) as void {
- println("MyTestClass: " + name);
- }
-
- //.(key as string) as string
- // => "key " + key;
- }
-
- /*class TestImplementation {
- public implements TestInterface {
- interfaceMethod() => "TestImplementation";
- }
- }*/
-
- val testInstance = new TestOperators();
- //testInstance("something");
-
- something.dump();
-
- val objects = makeArray(5);
- printMany(objects);
-
-
- println(<test string>);
- println(<test string>.name);
- println(<test string>.interfaceMethod());
- //println(new TestImplementation().interfaceMethod());
-
- var diamond = <item:minecraft:diamond>;
- var dirt = <item:minecraft:dirt>;
- addShapedRecipe("TestRecipe", diamond, [[dirt, dirt, dirt],[dirt, dirt, dirt],[dirt, dirt, dirt]]);
-
- var count = 10;
- floatMethod(5f * count);
-
- invokeFunctional(name => "Hello " + name);
|