Class BlockStateArgument

java.lang.Object
net.minecraft.command.argument.BlockStateArgument
All Implemented Interfaces:
Predicate<CachedBlockPosition>

public class BlockStateArgument
extends Object
implements Predicate<CachedBlockPosition>
Mappings:
Namespace Name
official ef
intermediary net/minecraft/class_2247
named net/minecraft/command/argument/BlockStateArgument
  • Field Details

    • state

      private final BlockState state
      Mappings:
      Namespace Name Mixin selector
      official a Lef;a:Lcht;
      intermediary field_10632 Lnet/minecraft/class_2247;field_10632:Lnet/minecraft/class_2680;
      named state Lnet/minecraft/command/argument/BlockStateArgument;state:Lnet/minecraft/block/BlockState;
    • properties

      private final Set<Property<?>> properties
      Mappings:
      Namespace Name Mixin selector
      official b Lef;b:Ljava/util/Set;
      intermediary field_10631 Lnet/minecraft/class_2247;field_10631:Ljava/util/Set;
      named properties Lnet/minecraft/command/argument/BlockStateArgument;properties:Ljava/util/Set;
    • data

      @Nullable private final CompoundTag data
      Mappings:
      Namespace Name Mixin selector
      official c Lef;c:Lmq;
      intermediary field_10633 Lnet/minecraft/class_2247;field_10633:Lnet/minecraft/class_2487;
      named data Lnet/minecraft/command/argument/BlockStateArgument;data:Lnet/minecraft/nbt/CompoundTag;
  • Constructor Details

    • BlockStateArgument

      public BlockStateArgument​(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag data)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lef;<init>(Lcht;Ljava/util/Set;Lmq;)V
      intermediary <init> Lnet/minecraft/class_2247;<init>(Lnet/minecraft/class_2680;Ljava/util/Set;Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/command/argument/BlockStateArgument;<init>(Lnet/minecraft/block/BlockState;Ljava/util/Set;Lnet/minecraft/nbt/CompoundTag;)V
  • Method Details

    • getBlockState

      public BlockState getBlockState()
      Mappings:
      Namespace Name Mixin selector
      official a Lef;a()Lcht;
      intermediary method_9494 Lnet/minecraft/class_2247;method_9494()Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/command/argument/BlockStateArgument;getBlockState()Lnet/minecraft/block/BlockState;
    • test

      public boolean test​(CachedBlockPosition cachedBlockPosition)
      Specified by:
      test in interface Predicate<CachedBlockPosition>
      Mappings:
      Namespace Name Mixin selector
      official a Lef;a(Lchx;)Z
      intermediary method_9493 Lnet/minecraft/class_2247;method_9493(Lnet/minecraft/class_2694;)Z
      named test Lnet/minecraft/command/argument/BlockStateArgument;test(Lnet/minecraft/block/pattern/CachedBlockPosition;)Z
    • setBlockState

      public boolean setBlockState​(ServerWorld serverWorld, BlockPos blockPos, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lef;a(Laav;Lfx;I)Z
      intermediary method_9495 Lnet/minecraft/class_2247;method_9495(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;I)Z
      named setBlockState Lnet/minecraft/command/argument/BlockStateArgument;setBlockState(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;I)Z