Package net.minecraft.predicate
Class StatePredicate
java.lang.Object
net.minecraft.predicate.StatePredicate
- Mappings:
Namespace Name official cy
intermediary net/minecraft/class_4559
named net/minecraft/predicate/StatePredicate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
private static class
private static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StatePredicate
private final List<StatePredicate.Condition>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasNullableString
(JsonElement json) void
check
(StateManager<?, ?> factory, Consumer<String> reporter) private static StatePredicate.Condition
createPredicate
(String key, JsonElement json) static StatePredicate
fromJson
(@Nullable JsonElement json) boolean
test
(BlockState state) boolean
test
(FluidState state) <S extends State<?,
S>>
booleantest
(StateManager<?, S> stateManager, S container) toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lcy;a:Lcy;
intermediary field_20736
Lnet/minecraft/class_4559;field_20736:Lnet/minecraft/class_4559;
named ANY
Lnet/minecraft/predicate/StatePredicate;ANY:Lnet/minecraft/predicate/StatePredicate;
-
conditions
- Mappings:
Namespace Name Mixin selector official b
Lcy;b:Ljava/util/List;
intermediary field_20737
Lnet/minecraft/class_4559;field_20737:Ljava/util/List;
named conditions
Lnet/minecraft/predicate/StatePredicate;conditions:Ljava/util/List;
-
-
Constructor Details
-
StatePredicate
StatePredicate(List<StatePredicate.Condition> conditions) - Mappings:
Namespace Name Mixin selector official <init>
Lcy;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_4559;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/predicate/StatePredicate;<init>(Ljava/util/List;)V
-
-
Method Details
-
createPredicate
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lcy$c;
intermediary method_22521
Lnet/minecraft/class_4559;method_22521(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4559$class_4562;
named createPredicate
Lnet/minecraft/predicate/StatePredicate;createPredicate(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/StatePredicate$Condition;
-
asNullableString
- Mappings:
Namespace Name Mixin selector official b
Lcy;b(Lcom/google/gson/JsonElement;)Ljava/lang/String;
intermediary method_22522
Lnet/minecraft/class_4559;method_22522(Lcom/google/gson/JsonElement;)Ljava/lang/String;
named asNullableString
Lnet/minecraft/predicate/StatePredicate;asNullableString(Lcom/google/gson/JsonElement;)Ljava/lang/String;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Ldbr;Ldbs;)Z
intermediary method_22515
Lnet/minecraft/class_4559;method_22515(Lnet/minecraft/class_2689;Lnet/minecraft/class_2688;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/state/StateManager;Lnet/minecraft/state/State;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Ldbq;)Z
intermediary method_22514
Lnet/minecraft/class_4559;method_22514(Lnet/minecraft/class_2680;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/block/BlockState;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Ldwj;)Z
intermediary method_22518
Lnet/minecraft/class_4559;method_22518(Lnet/minecraft/class_3610;)Z
named test
Lnet/minecraft/predicate/StatePredicate;test(Lnet/minecraft/fluid/FluidState;)Z
-
check
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Ldbr;Ljava/util/function/Consumer;)V
intermediary method_22516
Lnet/minecraft/class_4559;method_22516(Lnet/minecraft/class_2689;Ljava/util/function/Consumer;)V
named check
Lnet/minecraft/predicate/StatePredicate;check(Lnet/minecraft/state/StateManager;Ljava/util/function/Consumer;)V
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lcy;a(Lcom/google/gson/JsonElement;)Lcy;
intermediary method_22519
Lnet/minecraft/class_4559;method_22519(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4559;
named fromJson
Lnet/minecraft/predicate/StatePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/StatePredicate;
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lcy;a()Lcom/google/gson/JsonElement;
intermediary method_22513
Lnet/minecraft/class_4559;method_22513()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/StatePredicate;toJson()Lcom/google/gson/JsonElement;
-