Class EnterBlockCriterion.Conditions

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

public static class EnterBlockCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official bm$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 Lbm$a;a:Lcsv;
      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 Optional<StatePredicate> state
      Mappings:
      Namespace Name Mixin selector
      official b Lbm$a;b:Ljava/util/Optional;
      intermediary field_9577 Lnet/minecraft/class_2037$class_2039;field_9577:Ljava/util/Optional;
      named state Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;state:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, @Nullable @Nullable Block block, Optional<StatePredicate> state)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbm$a;<init>(Ljava/util/Optional;Lcsv;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2037$class_2039;<init>(Ljava/util/Optional;Lnet/minecraft/class_2248;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/block/Block;Ljava/util/Optional;)V
  • Method Details

    • block

      Mappings:
      Namespace Name Mixin selector
      official a Lbm$a;a(Lcsv;)Lam;
      intermediary method_8890 Lnet/minecraft/class_2037$class_2039;method_8890(Lnet/minecraft/class_2248;)Lnet/minecraft/class_175;
      named block Lnet/minecraft/advancement/criterion/EnterBlockCriterion$Conditions;block(Lnet/minecraft/block/Block;)Lnet/minecraft/advancement/AdvancementCriterion;
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
    • matches

      public boolean matches(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lbm$a;a(Ldfj;)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