Skip to content

helix / PredicateRef

Class: PredicateRef

Defined in: core/values/predicate.ts:301

A handle to a registered predicate file: carries its resource id (<ns>:name) and renders to that id as a CommandValue, so it can be passed straight to Selector.predicate(...) / predicateCheck(...). Created by Datapack.predicate.

Implements

Constructors

Constructor

new PredicateRef(id): PredicateRef

Defined in: core/values/predicate.ts:302

Parameters

id

string

Returns

PredicateRef

Properties

id

readonly id: string

Defined in: core/values/predicate.ts:302

Methods

render()

render(): string

Defined in: core/values/predicate.ts:303

Returns

string

Implementation of

CommandValue.render

Released under the MIT License · Credits