Class PlacedBlockCriterion

All Implemented Interfaces:
Criterion<PlacedBlockCriterion.Conditions>

public class PlacedBlockCriterion extends AbstractCriterion<PlacedBlockCriterion.Conditions>
Mappings:
Namespace Name
official cm
intermediary net/minecraft/class_2111
named net/minecraft/advancement/criterion/PlacedBlockCriterion
  • Field Details

    • ID

      static final Identifier ID
      Mappings:
      Namespace Name Mixin selector
      official a Lcm;a:Lyt;
      intermediary field_9724 Lnet/minecraft/class_2111;field_9724:Lnet/minecraft/class_2960;
      named ID Lnet/minecraft/advancement/criterion/PlacedBlockCriterion;ID:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • PlacedBlockCriterion

      public PlacedBlockCriterion()
  • Method Details

    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lam;a()Lyt;
      intermediary method_794 Lnet/minecraft/class_179;method_794()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/criterion/Criterion;getId()Lnet/minecraft/util/Identifier;
    • conditionsFromJson

      public PlacedBlockCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<PlacedBlockCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lcm;a(Lcom/google/gson/JsonObject;Lbo$b;Lbe;)Lcm$a;
      intermediary method_9088 Lnet/minecraft/class_2111;method_9088(Lcom/google/gson/JsonObject;Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2111$class_2113;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/PlacedBlockCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/PlacedBlockCriterion$Conditions;
    • getBlock

      @Nullable private static @Nullable Block getBlock(JsonObject obj)
      Mappings:
      Namespace Name Mixin selector
      official a Lcm;a(Lcom/google/gson/JsonObject;)Lcdq;
      intermediary method_22492 Lnet/minecraft/class_2111;method_22492(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_2248;
      named getBlock Lnet/minecraft/advancement/criterion/PlacedBlockCriterion;getBlock(Lcom/google/gson/JsonObject;)Lnet/minecraft/block/Block;
    • trigger

      public void trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lcm;a(Ladx;Lgj;Lbuw;)V
      intermediary method_9087 Lnet/minecraft/class_2111;method_9087(Lnet/minecraft/class_3222;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
      named trigger Lnet/minecraft/advancement/criterion/PlacedBlockCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V