Skip to content

API reference / @jsprismarine/prismarine / content/withheldContent

content/withheldContent ​

Interfaces ​

WithheldContent ​

Defined in: packages/prismarine/src/content/withheldContent.ts:17

Vanilla identifiers the content build leaves out, by registry.

Properties ​

blocks ​

readonly blocks: ReadonlySet<string>

Defined in: packages/prismarine/src/content/withheldContent.ts:18

entities ​

readonly entities: ReadonlySet<string>

Defined in: packages/prismarine/src/content/withheldContent.ts:20

items ​

readonly items: ReadonlySet<string>

Defined in: packages/prismarine/src/content/withheldContent.ts:19

Variables ​

NOTHING_WITHHELD ​

const NOTHING_WITHHELD: WithheldContent

Defined in: packages/prismarine/src/content/withheldContent.ts:24

What a server whose content is the world's own release withholds.

Functions ​

contentMissingAt() ​

contentMissingAt(codec): WithheldContent

Defined in: packages/prismarine/src/content/withheldContent.ts:32

The vanilla content a release does not have.

Parameters ​

codec ​

ProtocolCodec

The release's codec.

Returns ​

WithheldContent

What a world on that release's content leaves out, or a session on it is sent a substitute for.


withheldNames() ​

withheldNames(withheld): string[]

Defined in: packages/prismarine/src/content/withheldContent.ts:43

Every withheld identifier, for a log line.

Parameters ​

withheld ​

WithheldContent

What a release lacks.

Returns ​

string[]

The identifiers, deduplicated and sorted.