public class EnterBlockCriterion extends AbstractCriterion<EnterBlockCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
EnterBlockCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
EnterBlockCriterion() |
Modifier and Type | Method and Description |
---|---|
EnterBlockCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
private static Block |
getBlock(JsonObject obj) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
BlockState state) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private static final Identifier ID
public Identifier getId()
public EnterBlockCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<EnterBlockCriterion.Conditions>
@Nullable private static Block getBlock(JsonObject obj)
public void trigger(ServerPlayerEntity player, BlockState state)