mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-19 14:50:30 +00:00
organize language API
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
|
||||
import com.dfsek.terra.addons.terrascript.api.lang.Returnable;
|
||||
import com.dfsek.terra.addons.terrascript.api.lang.Variable;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface Function<T> extends Returnable<T> {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
|
||||
import com.dfsek.terra.addons.terrascript.api.lang.Returnable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface FunctionBuilder<T extends Function<?>> {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
|
||||
import com.dfsek.terra.addons.terrascript.api.lang.Item;
|
||||
|
||||
/**
|
||||
* Arguments passed to {@link Item}s by the implementation
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
package com.dfsek.terra.addons.terrascript.api.lang;
|
||||
|
||||
import com.dfsek.terra.addons.terrascript.api.ImplementationArguments;
|
||||
import com.dfsek.terra.addons.terrascript.api.Position;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
package com.dfsek.terra.addons.terrascript.api.lang;
|
||||
|
||||
public interface Returnable<T> extends Item<T> {
|
||||
ReturnType returnType();
|
||||
@@ -1,4 +1,6 @@
|
||||
package com.dfsek.terra.addons.terrascript.api;
|
||||
package com.dfsek.terra.addons.terrascript.api.lang;
|
||||
|
||||
import com.dfsek.terra.addons.terrascript.api.Position;
|
||||
|
||||
public interface Variable<T> {
|
||||
T getValue();
|
||||
Reference in New Issue
Block a user