wip: Construct API

This commit is contained in:
ForestOfLight
2026-05-29 23:27:11 +02:00
Unverified
parent f750710732
commit 2b90020e37
25 changed files with 454 additions and 29 deletions
@@ -46,13 +46,8 @@ export class InstanceOptions extends Option {
return world.getDimension(this.dimensionId);
}
enable() {
this.isEnabled = true;
this.save();
}
disable() {
this.isEnabled = false;
setEnabled(enable) {
this.isEnabled = enable;
this.save();
}
@@ -69,7 +64,7 @@ export class InstanceOptions extends Option {
}
setLayer(layer) {
this.currentLayer = layer;
this.currentLayer = layer.floor();
this.save();
}
@@ -82,4 +77,9 @@ export class InstanceOptions extends Option {
this.verifier.trackPlayerDistance = distance;
this.save();
}
setVerifierParticleLifetime(lifetime) {
this.verifier.particleLifetime = lifetime;
this.save();
}
}