Package net.minecraft.predicate
Class StatePredicate
java.lang.Object
net.minecraft.predicate.StatePredicate
- Mappings:
Namespace Name official cv
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
-
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
Lcv;a:Lcv;
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
Lcv;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>
Lcv;<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
Lcv;a(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lcv$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
Lcv;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
Lcv;a(Lckt;Lcku;)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
Lcv;a(Lcks;)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
Lcv;a(Ldes;)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
Lcv;a(Lckt;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
Lcv;a(Lcom/google/gson/JsonElement;)Lcv;
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
Lcv;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;
-