Class BlockStatePredicate

java.lang.Object
net.minecraft.predicate.block.BlockStatePredicate
All Implemented Interfaces:
Predicate<BlockState>

public class BlockStatePredicate extends Object implements Predicate<BlockState>
Mappings:
Namespace Name
named net/minecraft/predicate/block/BlockStatePredicate
intermediary net/minecraft/class_2715
official dyd
  • Field Details

    • ANY

      public static final Predicate<BlockState> ANY
      Mappings:
      Namespace Name Mixin selector
      named ANY Lnet/minecraft/predicate/block/BlockStatePredicate;ANY:Ljava/util/function/Predicate;
      intermediary field_12419 Lnet/minecraft/class_2715;field_12419:Ljava/util/function/Predicate;
      official a Ldyd;a:Ljava/util/function/Predicate;
    • manager

      private final StateManager<Block,BlockState> manager
      Mappings:
      Namespace Name Mixin selector
      named manager Lnet/minecraft/predicate/block/BlockStatePredicate;manager:Lnet/minecraft/state/StateManager;
      intermediary field_12420 Lnet/minecraft/class_2715;field_12420:Lnet/minecraft/class_2689;
      official b Ldyd;b:Ldxv;
    • propertyTests

      private final Map<Property<?>,Predicate<Object>> propertyTests
      Mappings:
      Namespace Name Mixin selector
      named propertyTests Lnet/minecraft/predicate/block/BlockStatePredicate;propertyTests:Ljava/util/Map;
      intermediary field_12421 Lnet/minecraft/class_2715;field_12421:Ljava/util/Map;
      official c Ldyd;c:Ljava/util/Map;
  • Constructor Details

    • BlockStatePredicate

      private BlockStatePredicate(StateManager<Block,BlockState> manager)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/block/BlockStatePredicate;<init>(Lnet/minecraft/state/StateManager;)V
      intermediary <init> Lnet/minecraft/class_2715;<init>(Lnet/minecraft/class_2689;)V
      official <init> Ldyd;<init>(Ldxv;)V
  • Method Details

    • forBlock

      public static BlockStatePredicate forBlock(Block block)
      Mappings:
      Namespace Name Mixin selector
      named forBlock Lnet/minecraft/predicate/block/BlockStatePredicate;forBlock(Lnet/minecraft/block/Block;)Lnet/minecraft/predicate/block/BlockStatePredicate;
      intermediary method_11758 Lnet/minecraft/class_2715;method_11758(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2715;
      official a Ldyd;a(Ldkl;)Ldyd;
    • test

      public boolean test(@Nullable @Nullable BlockState blockState)
      Specified by:
      test in interface Predicate<BlockState>
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/predicate/block/BlockStatePredicate;test(Lnet/minecraft/block/BlockState;)Z
      intermediary method_11760 Lnet/minecraft/class_2715;method_11760(Lnet/minecraft/class_2680;)Z
      official a Ldyd;a(Ldxu;)Z
    • testProperty

      protected <T extends Comparable<T>> boolean testProperty(BlockState blockState, Property<T> property, Predicate<Object> predicate)
      Mappings:
      Namespace Name Mixin selector
      named testProperty Lnet/minecraft/predicate/block/BlockStatePredicate;testProperty(Lnet/minecraft/block/BlockState;Lnet/minecraft/state/property/Property;Ljava/util/function/Predicate;)Z
      intermediary method_11761 Lnet/minecraft/class_2715;method_11761(Lnet/minecraft/class_2680;Lnet/minecraft/class_2769;Ljava/util/function/Predicate;)Z
      official a Ldyd;a(Ldxu;Ldyw;Ljava/util/function/Predicate;)Z
    • with

      public <V extends Comparable<V>> BlockStatePredicate with(Property<V> property, Predicate<Object> predicate)
      Mappings:
      Namespace Name Mixin selector
      named with Lnet/minecraft/predicate/block/BlockStatePredicate;with(Lnet/minecraft/state/property/Property;Ljava/util/function/Predicate;)Lnet/minecraft/predicate/block/BlockStatePredicate;
      intermediary method_11762 Lnet/minecraft/class_2715;method_11762(Lnet/minecraft/class_2769;Ljava/util/function/Predicate;)Lnet/minecraft/class_2715;
      official a Ldyd;a(Ldyw;Ljava/util/function/Predicate;)Ldyd;