Package net.minecraft.util
Class TypedActionResult<T>
java.lang.Object
net.minecraft.util.TypedActionResult<T>
public class TypedActionResult<T> extends Object
- Mappings:
Namespace Name official apr
intermediary net/minecraft/class_1271
named net/minecraft/util/TypedActionResult
-
Field Summary
Fields Modifier and Type Field Description private ActionResult
result
private T
value
-
Constructor Summary
Constructors Constructor Description TypedActionResult(ActionResult result, T value)
-
Method Summary
Modifier and Type Method Description static <T> TypedActionResult<T>
consume(T data)
static <T> TypedActionResult<T>
fail(T data)
ActionResult
getResult()
T
getValue()
static <T> TypedActionResult<T>
pass(T data)
static <T> TypedActionResult<T>
success(T data)
static <T> TypedActionResult<T>
success(T data, boolean swingHand)
-
Field Details
-
result
- Mappings:
Namespace Name Mixin selector official a
Lapr;a:Lapq;
intermediary field_5815
Lnet/minecraft/class_1271;field_5815:Lnet/minecraft/class_1269;
named result
Lnet/minecraft/util/TypedActionResult;result:Lnet/minecraft/util/ActionResult;
-
value
- Mappings:
Namespace Name Mixin selector official b
Lapr;b:Ljava/lang/Object;
intermediary field_5816
Lnet/minecraft/class_1271;field_5816:Ljava/lang/Object;
named value
Lnet/minecraft/util/TypedActionResult;value:Ljava/lang/Object;
-
-
Constructor Details
-
TypedActionResult
- Mappings:
Namespace Name Mixin selector official <init>
Lapr;<init>(Lapq;Ljava/lang/Object;)V
intermediary <init>
Lnet/minecraft/class_1271;<init>(Lnet/minecraft/class_1269;Ljava/lang/Object;)V
named <init>
Lnet/minecraft/util/TypedActionResult;<init>(Lnet/minecraft/util/ActionResult;Ljava/lang/Object;)V
-
-
Method Details
-
getResult
- Mappings:
Namespace Name Mixin selector official a
Lapr;a()Lapq;
intermediary method_5467
Lnet/minecraft/class_1271;method_5467()Lnet/minecraft/class_1269;
named getResult
Lnet/minecraft/util/TypedActionResult;getResult()Lnet/minecraft/util/ActionResult;
-
getValue
- Mappings:
Namespace Name Mixin selector official b
Lapr;b()Ljava/lang/Object;
intermediary method_5466
Lnet/minecraft/class_1271;method_5466()Ljava/lang/Object;
named getValue
Lnet/minecraft/util/TypedActionResult;getValue()Ljava/lang/Object;
-
success
- Mappings:
Namespace Name Mixin selector official a
Lapr;a(Ljava/lang/Object;)Lapr;
intermediary method_22427
Lnet/minecraft/class_1271;method_22427(Ljava/lang/Object;)Lnet/minecraft/class_1271;
named success
Lnet/minecraft/util/TypedActionResult;success(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
-
consume
- Mappings:
Namespace Name Mixin selector official b
Lapr;b(Ljava/lang/Object;)Lapr;
intermediary method_22428
Lnet/minecraft/class_1271;method_22428(Ljava/lang/Object;)Lnet/minecraft/class_1271;
named consume
Lnet/minecraft/util/TypedActionResult;consume(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
-
pass
- Mappings:
Namespace Name Mixin selector official c
Lapr;c(Ljava/lang/Object;)Lapr;
intermediary method_22430
Lnet/minecraft/class_1271;method_22430(Ljava/lang/Object;)Lnet/minecraft/class_1271;
named pass
Lnet/minecraft/util/TypedActionResult;pass(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
-
fail
- Mappings:
Namespace Name Mixin selector official d
Lapr;d(Ljava/lang/Object;)Lapr;
intermediary method_22431
Lnet/minecraft/class_1271;method_22431(Ljava/lang/Object;)Lnet/minecraft/class_1271;
named fail
Lnet/minecraft/util/TypedActionResult;fail(Ljava/lang/Object;)Lnet/minecraft/util/TypedActionResult;
-
success
- Mappings:
Namespace Name Mixin selector official a
Lapr;a(Ljava/lang/Object;Z)Lapr;
intermediary method_29237
Lnet/minecraft/class_1271;method_29237(Ljava/lang/Object;Z)Lnet/minecraft/class_1271;
named success
Lnet/minecraft/util/TypedActionResult;success(Ljava/lang/Object;Z)Lnet/minecraft/util/TypedActionResult;
-