Skip to content

Commit 348e443

Browse files
committed
explain bricklib modules
1 parent dd81777 commit 348e443

File tree

12 files changed

+45
-4
lines changed

12 files changed

+45
-4
lines changed

src/bricklib/command.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* A custom command registry manager.
3+
*/
4+
15
import { Player, world } from '@minecraft/server';
26

37

src/bricklib/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Bricklib configuration.
3+
*/
4+
15
export default {
26

37
/**
@@ -14,4 +18,5 @@ export default {
1418
* Number of Minecraft commands to execute from the command queue, each tick.
1519
*/
1620
commandBuffer: 128,
17-
};
21+
22+
} as const;

src/bricklib/database.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Persistent storage for Minecraft.
3+
*/
4+
15
import { Entity, ItemStack, Player, world } from '@minecraft/server';
26
import * as utils from './utils.js';
37

@@ -15,7 +19,7 @@ export const DEFAULT_ID = 'default';
1519
/**
1620
* The max size of a database.
1721
*/
18-
export const MAX_SIZE = 32768;
22+
export const MAX_SIZE = 32767;
1923

2024
/**
2125
* Defines a dynamic property source.

src/bricklib/events.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* An event manager.
3+
*/
14

25
/**
36
* An event listener callback function.

src/bricklib/forms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* server forms
2+
* Server forms UI wrapper.
33
*/
44

55
import { Player } from '@minecraft/server';

src/bricklib/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Bricklib -- A wrapper library built on top of Minecraft:
3+
* Bedrock Edition's scripting API.
4+
*/
5+
16
import { system } from '@minecraft/server';
27

38
/**

src/bricklib/locale.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Localisation helpers.
3+
*/
4+
15
import * as utils from './utils.js';
26

37

src/bricklib/rawtext.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* A RawText builder for Minecraft Bedrock.
3+
*/
4+
15
/**
26
* @class
37
* A Minecraft rawtext builder.

src/bricklib/server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Server utilities.
3+
*/
4+
15
import {
26
world,
37
system,

src/bricklib/thread.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Manage concurrent tasks.
3+
*/
4+
15
import { system } from '@minecraft/server';
26
import config from './config.js';
37
import * as utils from './utils.js';

0 commit comments

Comments
 (0)