Class TypedActionResult<T>

java.lang.Object
net.minecraft.util.TypedActionResult<T>

public class TypedActionResult<T> extends Object
Mappings:
Namespace Name
named net/minecraft/util/TypedActionResult
intermediary net/minecraft/class_1271
official bqs
  • Field Details

    • result

      private final ActionResult result
      Mappings:
      Namespace Name Mixin selector
      named result Lnet/minecraft/util/TypedActionResult;result:Lnet/minecraft/util/ActionResult;
      intermediary field_5815 Lnet/minecraft/class_1271;field_5815:Lnet/minecraft/class_1269;
      official a Lbqs;a:Lbqr;
    • value

      private final T value
      Mappings:
      Namespace Name Mixin selector
      named value Lnet/minecraft/util/TypedActionResult;value:Ljava/lang/Object;
      intermediary field_5816 Lnet/minecraft/class_1271;field_5816:Ljava/lang/Object;
      official b Lbqs;b:Ljava/lang/Object;
  • Constructor Details

    • TypedActionResult

      public TypedActionResult(ActionResult result, T value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/TypedActionResult;<init>(Lnet/minecraft/util/ActionResult;Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_1271;<init>(Lnet/minecraft/class_1269;Ljava/lang/Object;)V
      official <init> Lbqs;<init>(Lbqr;Ljava/lang/Object;)V
  • Method Details

    • getResult

      public ActionResult getResult()
      Mappings:
      Namespace Name Mixin selector
      named getResult Lnet/minecraft/util/TypedActionResult;getResult()Lnet/minecraft/util/ActionResult;
      intermediary method_5467 Lnet/minecraft/class_1271;method_5467()Lnet/minecraft/class_1269;
      official a Lbqs;a()Lbqr;
    • getValue

      public T getValue()
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/util/TypedActionResult;getValue()Ljava/lang/Object;
      intermediary method_5466 Lnet/minecraft/class_1271;method_5466()Ljava/lang/Object;
      official b Lbqs;b()Ljava/lang/Object;
    • success

      public static <T> TypedActionResult<T> success(T data)
      Mappings:
      Namespace Name Mixin selector
      named success Lnet/minecraft/util/TypedActionResult;success(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
      intermediary method_22427 Lnet/minecraft/class_1271;method_22427(Ljava/lang/Object;)Lnet/minecraft/class_1271;
      official a Lbqs;a(Ljava/lang/Object;)Lbqs;
    • consume

      public static <T> TypedActionResult<T> consume(T data)
      Mappings:
      Namespace Name Mixin selector
      named consume Lnet/minecraft/util/TypedActionResult;consume(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
      intermediary method_22428 Lnet/minecraft/class_1271;method_22428(Ljava/lang/Object;)Lnet/minecraft/class_1271;
      official b Lbqs;b(Ljava/lang/Object;)Lbqs;
    • pass

      public static <T> TypedActionResult<T> pass(T data)
      Mappings:
      Namespace Name Mixin selector
      named pass Lnet/minecraft/util/TypedActionResult;pass(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
      intermediary method_22430 Lnet/minecraft/class_1271;method_22430(Ljava/lang/Object;)Lnet/minecraft/class_1271;
      official c Lbqs;c(Ljava/lang/Object;)Lbqs;
    • fail

      public static <T> TypedActionResult<T> fail(T data)
      Mappings:
      Namespace Name Mixin selector
      named fail Lnet/minecraft/util/TypedActionResult;fail(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
      intermediary method_22431 Lnet/minecraft/class_1271;method_22431(Ljava/lang/Object;)Lnet/minecraft/class_1271;
      official d Lbqs;d(Ljava/lang/Object;)Lbqs;
    • success

      public static <T> TypedActionResult<T> success(T data, boolean swingHand)
      Mappings:
      Namespace Name Mixin selector
      named success Lnet/minecraft/util/TypedActionResult;success(Ljava/lang/Object;Z)Lnet/minecraft/util/TypedActionResult;
      intermediary method_29237 Lnet/minecraft/class_1271;method_29237(Ljava/lang/Object;Z)Lnet/minecraft/class_1271;
      official a Lbqs;a(Ljava/lang/Object;Z)Lbqs;