Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/bricklib/command.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* A custom command registry manager.
*/

import { Player, world } from '@minecraft/server';


Expand Down
7 changes: 6 additions & 1 deletion src/bricklib/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Bricklib configuration.
*/

export default {

/**
Expand All @@ -14,4 +18,5 @@ export default {
* Number of Minecraft commands to execute from the command queue, each tick.
*/
commandBuffer: 128,
};

} as const;
6 changes: 5 additions & 1 deletion src/bricklib/database.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Persistent storage for Minecraft.
*/

import { Entity, ItemStack, Player, world } from '@minecraft/server';
import * as utils from './utils.js';

Expand All @@ -15,7 +19,7 @@ export const DEFAULT_ID = 'default';
/**
* The max size of a database.
*/
export const MAX_SIZE = 32768;
export const MAX_SIZE = 32767;

/**
* Defines a dynamic property source.
Expand Down
3 changes: 3 additions & 0 deletions src/bricklib/events.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* An event manager.
*/

/**
* An event listener callback function.
Expand Down
2 changes: 1 addition & 1 deletion src/bricklib/forms.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* server forms
* Server forms UI wrapper.
*/

import { Player } from '@minecraft/server';
Expand Down
5 changes: 5 additions & 0 deletions src/bricklib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Bricklib -- A wrapper library built on top of Minecraft:
* Bedrock Edition's scripting API.
*/

import { system } from '@minecraft/server';

/**
Expand Down
4 changes: 4 additions & 0 deletions src/bricklib/locale.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Localisation helpers.
*/

import * as utils from './utils.js';


Expand Down
4 changes: 4 additions & 0 deletions src/bricklib/rawtext.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* A RawText builder for Minecraft Bedrock.
*/

/**
* @class
* A Minecraft rawtext builder.
Expand Down
4 changes: 4 additions & 0 deletions src/bricklib/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Server utilities.
*/

import {
world,
system,
Expand Down
4 changes: 4 additions & 0 deletions src/bricklib/thread.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Manage concurrent tasks.
*/

import { system } from '@minecraft/server';
import config from './config.js';
import * as utils from './utils.js';
Expand Down
4 changes: 4 additions & 0 deletions src/bricklib/ticks.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Tick timing utilities.
*/

import { system } from '@minecraft/server';
import * as utils from './utils.js';

Expand Down
2 changes: 1 addition & 1 deletion src/bricklib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Utility functions
* General utility functions.
*/

/**
Expand Down