mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 05:40:00 +03:00
14 lines
409 B
Diff
14 lines
409 B
Diff
--- ../src-base/minecraft/net/minecraft/util/ActionResult.java
|
|
+++ ../src-work/minecraft/net/minecraft/util/ActionResult.java
|
|
@@ -20,4 +20,10 @@
|
|
{
|
|
return this.result;
|
|
}
|
|
+
|
|
+ //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);
|
|
+ }
|
|
}
|