@orusteam/solariscore 2.5.9 → 2.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { BlockComponentRandomTickEvent, BlockCustomComponent, CustomComponentParameters } from "@minecraft/server";
2
+ export declare class GrassBlockComponent implements BlockCustomComponent {
3
+ constructor();
4
+ onRandomTick({ block }: BlockComponentRandomTickEvent, { params }: CustomComponentParameters): void;
5
+ }
6
+ //# sourceMappingURL=GrassBlockComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GrassBlockComponent.d.ts","sourceRoot":"","sources":["../../../src/block/components/GrassBlockComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,6BAA6B,EAAE,oBAAoB,EAAE,yBAAyB,EAAW,MAAM,mBAAmB,CAAC;AAkCnI,qBAAa,mBAAoB,YAAW,oBAAoB;;IAK5D,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,6BAA6B,EAAE,EAAE,MAAM,EAAE,EAAE,yBAAyB;CAS/F"}
@@ -1,7 +1,7 @@
1
1
  export * from "./CropBlockComponent";
2
2
  export * from "./DoorBlockComponent";
3
3
  export * from "./EggBlockComponent";
4
- export * from "./GrassDecayBlockComponent";
4
+ export * from "./GrassBlockComponent";
5
5
  export * from "./LeavesBlockComponent";
6
6
  export * from "./ParticleEmitterBlockComponent";
7
7
  export * from "./SaplingBlockComponent";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/block/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/block/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export * from "./block/components";
2
2
  export * from "./item/components";
3
3
  export * from "./misc/DynamicDatabase";
4
4
  export * from "./utils";
5
+ import "./registry/index";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,OAAO,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -4395,7 +4395,7 @@ var EggBlockComponent = class {
4395
4395
  }
4396
4396
  };
4397
4397
 
4398
- // src/block/components/GrassDecayBlockComponent.ts
4398
+ // src/block/components/GrassBlockComponent.ts
4399
4399
  var nearbyOffsets = [
4400
4400
  new Vector3Builder(1, 0, 0),
4401
4401
  new Vector3Builder(-1, 0, 0),
@@ -4636,6 +4636,21 @@ function getDynamicDatabase(provider, dataId) {
4636
4636
  }
4637
4637
  throw new Error("Inst\xE2ncia de DynamicDatabase n\xE3o encontrada para o provedor fornecido.");
4638
4638
  }
4639
+
4640
+ // src/registry/BlockComponentRegistry.ts
4641
+ import { system as system6 } from "@minecraft/server";
4642
+ function registryBlockComponents() {
4643
+ system6.beforeEvents.startup.subscribe(({ blockComponentRegistry }) => {
4644
+ blockComponentRegistry.registerCustomComponent("solariscore:crop", new CropBlockComponent());
4645
+ blockComponentRegistry.registerCustomComponent("solariscore:door", new DoorBlockComponent());
4646
+ blockComponentRegistry.registerCustomComponent("solariscore:egg", new EggBlockComponent());
4647
+ blockComponentRegistry.registerCustomComponent("solariscore:grass", new GrassBlockComponent());
4648
+ blockComponentRegistry.registerCustomComponent("solariscore:leaves", new LeavesBlockComponent());
4649
+ blockComponentRegistry.registerCustomComponent("solariscore:particle_emitter", new ParticleEmitterBlockComponent());
4650
+ blockComponentRegistry.registerCustomComponent("solariscore:sapling", new SaplingBlockComponent());
4651
+ });
4652
+ }
4653
+ registryBlockComponents();
4639
4654
  export {
4640
4655
  BlockBuilder,
4641
4656
  BlockUtil,
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BlockComponentRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockComponentRegistry.d.ts","sourceRoot":"","sources":["../../src/registry/BlockComponentRegistry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import "./BlockComponentRegistry";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orusteam/solariscore",
3
- "version": "2.5.9",
3
+ "version": "2.5.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",