Table of Contents

Class Criteria

Namespace
Obsidian.API.Advancements
Assembly
Obsidian.API.dll

Criteria for advancements. If this is a custom critera developers will have to track the players themselves to ensure they achieve the required criteria

public class Criteria
Inheritance
Criteria
Inherited Members

Constructors

Criteria(string, bool)

public Criteria(string name, bool required)

Parameters

name string
required bool

Properties

Achieved

public bool Achieved { get; }

Property Value

bool

AchievedAt

public DateTimeOffset? AchievedAt { get; }

Property Value

DateTimeOffset?

Identifier

public string Identifier { get; }

Property Value

string

Required

public bool Required { get; }

Property Value

bool

Trigger

public string? Trigger { get; init; }

Property Value

string

Methods

CompleteCriteria(DateTimeOffset)

public void CompleteCriteria(DateTimeOffset completedAt)

Parameters

completedAt DateTimeOffset