Package net.minecraft.predicate
Class StatePredicate
java.lang.Object
net.minecraft.predicate.StatePredicate
public class StatePredicate extends Object
- Mappings:
Namespace Name official cm
intermediary net/minecraft/class_4559
named net/minecraft/predicate/StatePredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatePredicate.Builder
(package private) static class
StatePredicate.Condition
(package private) static class
StatePredicate.ExactValueCondition
(package private) static class
StatePredicate.RangedValueCondition
-
Field Summary
Fields Modifier and Type Field Description static StatePredicate
ANY
private List<StatePredicate.Condition>
conditions
-
Constructor Summary
Constructors Modifier Constructor Description private
StatePredicate(List<StatePredicate.Condition> testers)
-
Method Summary
Modifier and Type Method Description private static String
asNullableString(JsonElement json)
void
check(StateManager<?,?> factory, Consumer<String> reporter)
private static StatePredicate.Condition
createPredicate(String key, JsonElement json)
static StatePredicate
fromJson(JsonElement json)
boolean
test(BlockState state)
boolean
test(FluidState state)
<S extends State<?, S>>
booleantest(StateManager<?,S> stateManager, S container)
JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lcm;a:Lcm;
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
Lcm;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
- Mappings:
Namespace Name Mixin selector official <init>
Lcm;<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
Lcm;a(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lcm$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
Lcm;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
Lcm;a(Lchu;Lchv;)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
Lcm;a(Lcht;)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
Lcm;a(Ldal;)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
Lcm;a(Lchu;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
Lcm;a(Lcom/google/gson/JsonElement;)Lcm;
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
Lcm;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;
-