Class StatePredicate.ExactValueCondition

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

private static class StatePredicate.ExactValueCondition extends StatePredicate.Condition
Mappings:
Namespace Name
official cz$b
intermediary net/minecraft/class_4559$class_4561
named net/minecraft/predicate/StatePredicate$ExactValueCondition
  • Field Details

    • value

      private final String value
      Mappings:
      Namespace Name Mixin selector
      official a Lcz$b;a:Ljava/lang/String;
      intermediary field_20739 Lnet/minecraft/class_4559$class_4561;field_20739:Ljava/lang/String;
      named value Lnet/minecraft/predicate/StatePredicate$ExactValueCondition;value:Ljava/lang/String;
  • Constructor Details

    • ExactValueCondition

      public ExactValueCondition(String key, String value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcz$b;<init>(Ljava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4559$class_4561;<init>(Ljava/lang/String;Ljava/lang/String;)V
      named <init> Lnet/minecraft/predicate/StatePredicate$ExactValueCondition;<init>(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 Lcz$c;a(Ldca;Lddb;)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 Lcz$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;