Class StatePredicate.Condition

java.lang.Object
net.minecraft.predicate.StatePredicate.Condition
Direct Known Subclasses:
StatePredicate.ExactValueCondition, StatePredicate.RangedValueCondition
Enclosing class:
StatePredicate

private abstract static class StatePredicate.Condition extends Object
Mappings:
Namespace Name
official cv$c
intermediary net/minecraft/class_4559$class_4562
named net/minecraft/predicate/StatePredicate$Condition
  • Field Details

    • key

      private final String key
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$c;a:Ljava/lang/String;
      intermediary field_20740 Lnet/minecraft/class_4559$class_4562;field_20740:Ljava/lang/String;
      named key Lnet/minecraft/predicate/StatePredicate$Condition;key:Ljava/lang/String;
  • Constructor Details

    • Condition

      public Condition(String key)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcv$c;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_4559$class_4562;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/predicate/StatePredicate$Condition;<init>(Ljava/lang/String;)V
  • Method Details

    • test

      public <S extends State<?, S>> boolean test(StateManager<?,S> stateManager, S state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$c;a(Lckt;Lcku;)Z
      intermediary method_22530 Lnet/minecraft/class_4559$class_4562;method_22530(Lnet/minecraft/class_2689;Lnet/minecraft/class_2688;)Z
      named test Lnet/minecraft/predicate/StatePredicate$Condition;test(Lnet/minecraft/state/StateManager;Lnet/minecraft/state/State;)Z
    • test

      protected abstract <T extends Comparable<T>> boolean test(State<?,?> state, Property<T> property)
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$c;a(Lcku;Lclv;)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 abstract JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$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;
    • getKey

      public String getKey()
      Mappings:
      Namespace Name Mixin selector
      official b Lcv$c;b()Ljava/lang/String;
      intermediary method_22533 Lnet/minecraft/class_4559$class_4562;method_22533()Ljava/lang/String;
      named getKey Lnet/minecraft/predicate/StatePredicate$Condition;getKey()Ljava/lang/String;
    • reportMissing

      public void reportMissing(StateManager<?,?> factory, Consumer<String> reporter)
      Mappings:
      Namespace Name Mixin selector
      official a Lcv$c;a(Lckt;Ljava/util/function/Consumer;)V
      intermediary method_22531 Lnet/minecraft/class_4559$class_4562;method_22531(Lnet/minecraft/class_2689;Ljava/util/function/Consumer;)V
      named reportMissing Lnet/minecraft/predicate/StatePredicate$Condition;reportMissing(Lnet/minecraft/state/StateManager;Ljava/util/function/Consumer;)V