Class StatePredicate.RangedValueCondition

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

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

    • min

      @Nullable private final String min
      Mappings:
      Namespace Name Mixin selector
      official a Lcm$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 String max
      Mappings:
      Namespace Name Mixin selector
      official b Lcm$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 String min, @Nullable String max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcm$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 Lcm$c;a(Lchv;Lciw;)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 Lcm$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;