Class StatePredicate

java.lang.Object
net.minecraft.predicate.StatePredicate

public class StatePredicate extends Object
Mappings:
Namespace Name
official cz
intermediary net/minecraft/class_4559
named net/minecraft/predicate/StatePredicate
  • Field Details

    • ANY

      public static final StatePredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a:Lcz;
      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

      private final List<StatePredicate.Condition> conditions
      Mappings:
      Namespace Name Mixin selector
      official b Lcz;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> Lcz;<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

      private static StatePredicate.Condition createPredicate(String key, JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Ljava/lang/String;Lcom/google/gson/JsonElement;)Lcz$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

      @Nullable private static @Nullable String asNullableString(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official b Lcz;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

      public <S extends State<?, S>> boolean test(StateManager<?,S> stateManager, S container)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Lcus;Lcut;)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

      public boolean test(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Lcur;)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

      public boolean test(FluidState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Ldoy;)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

      public void check(StateManager<?,?> factory, Consumer<String> reporter)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Lcus;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

      public static StatePredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;a(Lcom/google/gson/JsonElement;)Lcz;
      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

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lcz;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;