Class PlacedBlockCriterion.Conditions

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

public static class PlacedBlockCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cm$a
intermediary net/minecraft/class_2111$class_2113
named net/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions
  • Field Details

    • block

      @Nullable private final @Nullable Block block
      Mappings:
      Namespace Name Mixin selector
      official a Lcm$a;a:Lcpi;
      intermediary field_9728 Lnet/minecraft/class_2111$class_2113;field_9728:Lnet/minecraft/class_2248;
      named block Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;block:Lnet/minecraft/block/Block;
    • state

      private final StatePredicate state
      Mappings:
      Namespace Name Mixin selector
      official b Lcm$a;b:Lcy;
      intermediary field_9730 Lnet/minecraft/class_2111$class_2113;field_9730:Lnet/minecraft/class_4559;
      named state Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;state:Lnet/minecraft/predicate/StatePredicate;
    • location

      private final LocationPredicate location
      Mappings:
      Namespace Name Mixin selector
      official c Lcm$a;c:Lcg;
      intermediary field_9729 Lnet/minecraft/class_2111$class_2113;field_9729:Lnet/minecraft/class_2090;
      named location Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;location:Lnet/minecraft/predicate/entity/LocationPredicate;
    • item

      private final ItemPredicate item
      Mappings:
      Namespace Name Mixin selector
      official d Lcm$a;d:Lbz;
      intermediary field_9731 Lnet/minecraft/class_2111$class_2113;field_9731:Lnet/minecraft/class_2073;
      named item Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, @Nullable @Nullable Block block, StatePredicate state, LocationPredicate location, ItemPredicate item)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcm$a;<init>(Lbn$b;Lcpi;Lcy;Lcg;Lbz;)V
      intermediary <init> Lnet/minecraft/class_2111$class_2113;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2248;Lnet/minecraft/class_4559;Lnet/minecraft/class_2090;Lnet/minecraft/class_2073;)V
      named <init> Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/block/Block;Lnet/minecraft/predicate/StatePredicate;Lnet/minecraft/predicate/entity/LocationPredicate;Lnet/minecraft/predicate/item/ItemPredicate;)V
  • Method Details

    • block

      public static PlacedBlockCriterion.Conditions block(Block block)
      Mappings:
      Namespace Name Mixin selector
      official a Lcm$a;a(Lcpi;)Lcm$a;
      intermediary method_9095 Lnet/minecraft/class_2111$class_2113;method_9095(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2111$class_2113;
      named block Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;block(Lnet/minecraft/block/Block;)Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;
    • matches

      public boolean matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcm$a;a(Ldbq;Lgt;Laip;Lcfv;)Z
      intermediary method_9094 Lnet/minecraft/class_2111$class_2113;method_9094(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Z
      named matches Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;matches(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Z
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a(Lcs;)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;