Class EnterBlockCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.EnterBlockCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
EnterBlockCriterion

public static class EnterBlockCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bk$a
intermediary net/minecraft/class_2037$class_2039
named net/minecraft/advancement/criterion/EnterBlockCriterion$Conditions
  • Field Details

    • block

      @Nullable private final @Nullable Block block
      Mappings:
      Namespace Name Mixin selector
      official a Lbk$a;a:Lccy;
      intermediary field_9576 Lnet/minecraft/class_2037$class_2039;field_9576:Lnet/minecraft/class_2248;
      named block Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;block:Lnet/minecraft/block/Block;
    • state

      private final StatePredicate state
      Mappings:
      Namespace Name Mixin selector
      official b Lbk$a;b:Lcw;
      intermediary field_9577 Lnet/minecraft/class_2037$class_2039;field_9577:Lnet/minecraft/class_4559;
      named state Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;state:Lnet/minecraft/predicate/StatePredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, @Nullable @Nullable Block block, StatePredicate state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbk$a;<init>(Lbo$b;Lccy;Lcw;)V
      intermediary <init> Lnet/minecraft/class_2037$class_2039;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2248;Lnet/minecraft/class_4559;)V
      named <init> Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/block/Block;Lnet/minecraft/predicate/StatePredicate;)V
  • Method Details

    • block

      public static EnterBlockCriterion.Conditions block(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lbk$a;a(Lccy;)Lbk$a;
      intermediary method_8890 Lnet/minecraft/class_2037$class_2039;method_8890(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2037$class_2039;
      named block Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;block(Lnet/minecraft/block/Block;)Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lan;a(Lcr;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;
    • matches

      public boolean matches(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lbk$a;a(Lcoc;)Z
      intermediary method_8891 Lnet/minecraft/class_2037$class_2039;method_8891(Lnet/minecraft/class_2680;)Z
      named matches Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;matches(Lnet/minecraft/block/BlockState;)Z