Appearance
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
readonlyid:string
Defined in: core/values/predicate.ts:302
Methods
render()
render():
string
Defined in: core/values/predicate.ts:303
Returns
string