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 cn$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 Lcn$a;a:Lciw;
      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 Lcn$a;b:Lcz;
      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 Lcn$a;c:Lch;
      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 Lcn$a;d:Lca;
      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> Lcn$a;<init>(Lbo$b;Lciw;Lcz;Lch;Lca;)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 Lcn$a;a(Lciw;)Lcn$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 Lcn$a;a(Lcur;Lgt;Lafo;Lcaa;)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 Lan;a(Lct;)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;