Class BlockStateMatcher

  • All Implemented Interfaces:
    java.util.function.Predicate<BlockState>

    public class BlockStateMatcher
    extends java.lang.Object
    implements java.util.function.Predicate<BlockState>
    • Field Detail

      • ANY

        public static final java.util.function.Predicate<BlockState> ANY
      • properties

        private final java.util.Map<Property<?>,​java.util.function.Predicate<java.lang.Object>> properties
    • Method Detail

      • test

        public boolean test​(@Nullable
                            BlockState p_test_1_)
        Specified by:
        test in interface java.util.function.Predicate<BlockState>
      • applies

        protected <T extends java.lang.Comparable<T>> boolean applies​(BlockState p_185927_1_,
                                                                      Property<T> p_185927_2_,
                                                                      java.util.function.Predicate<java.lang.Object> p_185927_3_)
      • where

        public <V extends java.lang.Comparable<V>> BlockStateMatcher where​(Property<V> p_201028_1_,
                                                                           java.util.function.Predicate<java.lang.Object> p_201028_2_)