Class StatePredicate.RangedValueCondition

java.lang.Object
net.minecraft.predicate.StatePredicate.Condition
net.minecraft.predicate.StatePredicate.RangedValueCondition
Enclosing class:
StatePredicate

private static class StatePredicate.RangedValueCondition extends StatePredicate.Condition
Mappings:
Namespace Name
official cw$d
intermediary net/minecraft/class_4559$class_4563
named net/minecraft/predicate/StatePredicate$RangedValueCondition
  • Field Details

    • min

      @Nullable private final @Nullable String min
      Mappings:
      Namespace Name Mixin selector
      official a Lcw$d;a:Ljava/lang/String;
      intermediary field_20741 Lnet/minecraft/class_4559$class_4563;field_20741:Ljava/lang/String;
      named min Lnet/minecraft/predicate/StatePredicate$RangedValueCondition;min:Ljava/lang/String;
    • max

      @Nullable private final @Nullable String max
      Mappings:
      Namespace Name Mixin selector
      official b Lcw$d;b:Ljava/lang/String;
      intermediary field_20742 Lnet/minecraft/class_4559$class_4563;field_20742:Ljava/lang/String;
      named max Lnet/minecraft/predicate/StatePredicate$RangedValueCondition;max:Ljava/lang/String;
  • Constructor Details

    • RangedValueCondition

      public RangedValueCondition(String key, @Nullable @Nullable String min, @Nullable @Nullable String max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcw$d;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4559$class_4563;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
      named <init> Lnet/minecraft/predicate/StatePredicate$RangedValueCondition;<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
  • Method Details

    • test

      protected <T extends Comparable<T>> boolean test(State<?,?> state, Property<T> property)
      Specified by:
      test in class StatePredicate.Condition
      Mappings:
      Namespace Name Mixin selector
      official a Lcw$c;a(Lcox;Lcpy;)Z
      intermediary method_22532 Lnet/minecraft/class_4559$class_4562;method_22532(Lnet/minecraft/class_2688;Lnet/minecraft/class_2769;)Z
      named test Lnet/minecraft/predicate/StatePredicate$Condition;test(Lnet/minecraft/state/State;Lnet/minecraft/state/property/Property;)Z
    • toJson

      public JsonElement toJson()
      Specified by:
      toJson in class StatePredicate.Condition
      Mappings:
      Namespace Name Mixin selector
      official a Lcw$c;a()Lcom/google/gson/JsonElement;
      intermediary method_22529 Lnet/minecraft/class_4559$class_4562;method_22529()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/StatePredicate$Condition;toJson()Lcom/google/gson/JsonElement;