public interface AdvancementCriterion
Advancement
.Modifier and Type | Interface and Description |
---|---|
static interface |
AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>
A base builder to create
AdvancementCriterion s. |
static interface |
AdvancementCriterion.Builder
A builder to create
AdvancementCriterion s. |
Modifier and Type | Field and Description |
---|---|
static AdvancementCriterion |
DUMMY
Represents a dummy criterion, this will never be triggered
by vanilla Minecraft.
|
static AdvancementCriterion |
EMPTY
Represents an empty criterion, this means that nothing has to be
achieved to unlock a
Advancement . |
Modifier and Type | Method and Description |
---|---|
AdvancementCriterion |
and(AdvancementCriterion... criteria)
Combines this
AdvancementCriterion with the other criteria
to create an AND operation. |
AdvancementCriterion |
and(Iterable<AdvancementCriterion> criteria)
Combines this
AdvancementCriterion with the other criteria
to create an AND operation. |
static AdvancementCriterion.Builder |
builder()
Creates a new
AdvancementCriterion.Builder to create AdvancementCriterion s. |
String |
getName()
Gets the name of this criterion.
|
Optional<FilteredTrigger<?>> |
getTrigger()
Gets the
FilteredTrigger of this
AdvancementCriterion , if present. |
AdvancementCriterion |
or(AdvancementCriterion... criteria)
Combines this
AdvancementCriterion with the other criteria
to create an OR operation. |
AdvancementCriterion |
or(Iterable<AdvancementCriterion> criteria)
Combines this
AdvancementCriterion with the other criteria
to create an OR operation. |
static final AdvancementCriterion EMPTY
Advancement
.static final AdvancementCriterion DUMMY
static AdvancementCriterion.Builder builder()
AdvancementCriterion.Builder
to create AdvancementCriterion
s.String getName()
AdvancementCriterion and(AdvancementCriterion... criteria)
AdvancementCriterion
with the other criteria
to create an AND operation.
There is no guarantee that the returned extends AndCriterion
,
this depends on if there are duplicate criteria, EMPTY
is present, or when no extra criteria are provided.
criteria
- The criteriaAdvancementCriterion and(Iterable<AdvancementCriterion> criteria)
AdvancementCriterion
with the other criteria
to create an AND operation.
There is no guarantee that the returned extends AndCriterion
,
this depends on if there are duplicate criteria, EMPTY
is present, or when no extra criteria are provided.
criteria
- The criteriaAdvancementCriterion or(AdvancementCriterion... criteria)
AdvancementCriterion
with the other criteria
to create an OR operation.
There is no guarantee that the returned extends OrCriterion
,
this depends on if there are duplicate criteria, EMPTY
is present, or when no extra criteria are provided.
criteria
- The criteriaAdvancementCriterion or(Iterable<AdvancementCriterion> criteria)
AdvancementCriterion
with the other criteria
to create an OR operation.
There is no guarantee that the returned extends OrCriterion
,
this depends on if there are duplicate criteria, EMPTY
is present, or when no extra criteria are provided.
criteria
- The criteriaOptional<FilteredTrigger<?>> getTrigger()
FilteredTrigger
of this
AdvancementCriterion
, if present.