- Added /mt blocks and /mt entities commands

- Further preparation of event manager for the event update
- Can now request all blocks and entities using the global game variable
- Improved automatic handling of version numbers
This commit is contained in:
Stan Hebben committed 2014-08-21 23:41:08 +02:00
1 parent b50a88227b
commit 56b8c9355c
81 files changed
+751 -506

No files matched your search

@@ -29,7 +29,7 @@ public abstract class Expression implements IPartialExpression {
}
public Expression cast(ZenPosition position, IEnvironmentGlobal environment, ZenType type) {
if (getType() == type) {
if (getType().equals(type)) {
return this;
} else {
ICastingRule castingRule = getType().getCastingRule(type, environment);
@@ -31,6 +31,7 @@ public class ExpressionInvalid extends Expression {
this.type = type;
// XXX: remove before release
//throw new RuntimeException("Constructing invalid expression");
}
@@ -81,7 +81,8 @@ public class ExpressionJavaLambda extends Expression {
for (int i = 0; i < arguments.size(); i++) {
environmentMethod.putValue(
arguments.get(i).getName(),
new SymbolArgument(i + 1, environment.getType(method.getGenericParameterTypes()[i])));
new SymbolArgument(i + 1, environment.getType(method.getGenericParameterTypes()[i])),
getPosition());
}
output.start();