类 StatePredicate


  • public class StatePredicate
    extends Object
    Mappings:
    Namespace Name
    official cr
    intermediary net/minecraft/class_4559
    named net/minecraft/predicate/StatePredicate
    • 字段详细资料

      • ANY

        public static final StatePredicate ANY
        Mappings:
        Namespace Name Mixin selector
        official a Lcr;a:Lcr;
        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 Lcr;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;
    • 构造器详细资料

      • StatePredicate

        private StatePredicate​(List<StatePredicate.Condition> testers)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcr;<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
    • 方法详细资料

      • createPredicate

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