mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 15:03:04 +00:00
14 lines
417 B
Diff
14 lines
417 B
Diff
--- ../src-base/minecraft/net/minecraft/util/ActionResult.java
|
|
+++ ../src-work/minecraft/net/minecraft/util/ActionResult.java
|
|
@@ -20,4 +20,10 @@
|
|
{
|
|
return this.field_188400_b;
|
|
}
|
|
+
|
|
+ //Just a generic helper function to make typecasing easier...
|
|
+ public static <T> ActionResult<T> newResult(EnumActionResult result, T value)
|
|
+ {
|
|
+ return new ActionResult<T>(result, value);
|
|
+ }
|
|
}
|