Package net.minecraft.predicate.block
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 official cid
intermediary net/minecraft/class_2715
named net/minecraft/predicate/block/BlockStatePredicate
-
Field Summary
Fields Modifier and Type Field Description static Predicate<BlockState>
ANY
private StateManager<Block,BlockState>
manager
private Map<Property<?>,Predicate<Object>>
propertyTests
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockStatePredicate(StateManager<Block,BlockState> manager)
-
Method Summary
Modifier and Type Method Description static BlockStatePredicate
forBlock(Block block)
boolean
test(BlockState blockState)
protected <T extends Comparable<T>>
booleantestProperty(BlockState blockState, Property<T> property, Predicate<Object> predicate)
<V extends Comparable<V>>
BlockStatePredicatewith(Property<V> property, Predicate<Object> predicate)
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lcid;a:Ljava/util/function/Predicate;
intermediary field_12419
Lnet/minecraft/class_2715;field_12419:Ljava/util/function/Predicate;
named ANY
Lnet/minecraft/predicate/block/BlockStatePredicate;ANY:Ljava/util/function/Predicate;
-
manager
- Mappings:
Namespace Name Mixin selector official b
Lcid;b:Lchu;
intermediary field_12420
Lnet/minecraft/class_2715;field_12420:Lnet/minecraft/class_2689;
named manager
Lnet/minecraft/predicate/block/BlockStatePredicate;manager:Lnet/minecraft/state/StateManager;
-
propertyTests
- Mappings:
Namespace Name Mixin selector official c
Lcid;c:Ljava/util/Map;
intermediary field_12421
Lnet/minecraft/class_2715;field_12421:Ljava/util/Map;
named propertyTests
Lnet/minecraft/predicate/block/BlockStatePredicate;propertyTests:Ljava/util/Map;
-
-
Constructor Details
-
BlockStatePredicate
- Mappings:
Namespace Name Mixin selector official <init>
Lcid;<init>(Lchu;)V
intermediary <init>
Lnet/minecraft/class_2715;<init>(Lnet/minecraft/class_2689;)V
named <init>
Lnet/minecraft/predicate/block/BlockStatePredicate;<init>(Lnet/minecraft/state/StateManager;)V
-
-
Method Details
-
forBlock
- Mappings:
Namespace Name Mixin selector official a
Lcid;a(Lbwu;)Lcid;
intermediary method_11758
Lnet/minecraft/class_2715;method_11758(Lnet/minecraft/class_2248;)Lnet/minecraft/class_2715;
named forBlock
Lnet/minecraft/predicate/block/BlockStatePredicate;forBlock(Lnet/minecraft/block/Block;)Lnet/minecraft/predicate/block/BlockStatePredicate;
-
test
- Specified by:
test
in interfacePredicate<BlockState>
- Mappings:
Namespace Name Mixin selector official a
Lcid;a(Lcht;)Z
intermediary method_11760
Lnet/minecraft/class_2715;method_11760(Lnet/minecraft/class_2680;)Z
named test
Lnet/minecraft/predicate/block/BlockStatePredicate;test(Lnet/minecraft/block/BlockState;)Z
-
testProperty
protected <T extends Comparable<T>> boolean testProperty(BlockState blockState, Property<T> property, Predicate<Object> predicate)- Mappings:
Namespace Name Mixin selector official a
Lcid;a(Lcht;Lciw;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
named testProperty
Lnet/minecraft/predicate/block/BlockStatePredicate;testProperty(Lnet/minecraft/block/BlockState;Lnet/minecraft/state/property/Property;Ljava/util/function/Predicate;)Z
-
with
public <V extends Comparable<V>> BlockStatePredicate with(Property<V> property, Predicate<Object> predicate)- Mappings:
Namespace Name Mixin selector official a
Lcid;a(Lciw;Ljava/util/function/Predicate;)Lcid;
intermediary method_11762
Lnet/minecraft/class_2715;method_11762(Lnet/minecraft/class_2769;Ljava/util/function/Predicate;)Lnet/minecraft/class_2715;
named with
Lnet/minecraft/predicate/block/BlockStatePredicate;with(Lnet/minecraft/state/property/Property;Ljava/util/function/Predicate;)Lnet/minecraft/predicate/block/BlockStatePredicate;
-