modules and imports
This commit is contained in:
1 parent
34bf877bc7
commit
4f65be946c
17 files changed
+479
-314
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package carpet.script;
|
||||
|
||||
import carpet.script.value.Value;
|
||||
import net.minecraft.server.command.ServerCommandSource;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
||||
@@ -15,9 +16,17 @@ public class CarpetContext extends Context
|
||||
}
|
||||
|
||||
@Override
|
||||
public Context recreate()
|
||||
public Context duplicate()
|
||||
{
|
||||
return new CarpetContext(this.host, this.s, this.origin);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initialize()
|
||||
{
|
||||
super.initialize();
|
||||
variables.put("_x", (c, t) -> Value.ZERO);
|
||||
variables.put("_y", (c, t) -> Value.ZERO);
|
||||
variables.put("_z", (c, t) -> Value.ZERO);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user