Class BlockPredicateArgumentType.StatePredicate

java.lang.Object
net.minecraft.command.argument.BlockPredicateArgumentType.StatePredicate
All Implemented Interfaces:
Predicate<CachedBlockPosition>, BlockPredicateArgumentType.BlockPredicate
Enclosing class:
BlockPredicateArgumentType

private static class BlockPredicateArgumentType.StatePredicate extends Object implements BlockPredicateArgumentType.BlockPredicate
Mappings:
Namespace Name
named net/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate
intermediary net/minecraft/class_2252$class_2253
official gh$a
  • Field Details

    • state

      private final BlockState state
      Mappings:
      Namespace Name Mixin selector
      named state Lnet/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate;state:Lnet/minecraft/block/BlockState;
      intermediary field_10674 Lnet/minecraft/class_2252$class_2253;field_10674:Lnet/minecraft/class_2680;
      official a Lgh$a;a:Ldsd;
    • properties

      private final Set<Property<?>> properties
      Mappings:
      Namespace Name Mixin selector
      named properties Lnet/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate;properties:Ljava/util/Set;
      intermediary field_10673 Lnet/minecraft/class_2252$class_2253;field_10673:Ljava/util/Set;
      official b Lgh$a;b:Ljava/util/Set;
    • nbt

      @Nullable private final @Nullable NbtCompound nbt
      Mappings:
      Namespace Name Mixin selector
      named nbt Lnet/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate;nbt:Lnet/minecraft/nbt/NbtCompound;
      intermediary field_10675 Lnet/minecraft/class_2252$class_2253;field_10675:Lnet/minecraft/class_2487;
      official c Lgh$a;c:Lus;
  • Constructor Details

    • StatePredicate

      public StatePredicate(BlockState state, Set<Property<?>> properties, @Nullable @Nullable NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate;<init>(Lnet/minecraft/block/BlockState;Ljava/util/Set;Lnet/minecraft/nbt/NbtCompound;)V
      intermediary <init> Lnet/minecraft/class_2252$class_2253;<init>(Lnet/minecraft/class_2680;Ljava/util/Set;Lnet/minecraft/class_2487;)V
      official <init> Lgh$a;<init>(Ldsd;Ljava/util/Set;Lus;)V
  • Method Details

    • test

      public boolean test(CachedBlockPosition cachedBlockPosition)
      Specified by:
      test in interface Predicate<CachedBlockPosition>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/command/argument/BlockPredicateArgumentType$StatePredicate;test(Lnet/minecraft/block/pattern/CachedBlockPosition;)Z
      intermediary method_9648 Lnet/minecraft/class_2252$class_2253;method_9648(Lnet/minecraft/class_2694;)Z
      official a Lgh$a;a(Ldsh;)Z
    • hasNbt

      public boolean hasNbt()
      Specified by:
      hasNbt in interface BlockPredicateArgumentType.BlockPredicate
      Mappings:
      Namespace Name Mixin selector
      named hasNbt Lnet/minecraft/command/argument/BlockPredicateArgumentType$BlockPredicate;hasNbt()Z
      intermediary method_38559 Lnet/minecraft/class_2252$class_2254;method_38559()Z
      official a Lgh$b;a()Z