Merge pull request #584 from Chicken-Bones/hitinfo
Add hitInfo field to MovingObjectPosition for when an int doesn't suffice
This commit is contained in:
commit
7f5fa36fcf
1 changed files with 7 additions and 2 deletions
|
@ -1,12 +1,17 @@
|
|||
--- ../src_base/minecraft/net/minecraft/util/MovingObjectPosition.java
|
||||
+++ ../src_work/minecraft/net/minecraft/util/MovingObjectPosition.java
|
||||
@@ -27,6 +27,9 @@
|
||||
@@ -27,7 +27,13 @@
|
||||
|
||||
/** The hit entity */
|
||||
public Entity entityHit;
|
||||
-
|
||||
+
|
||||
+ /** Used to determine what sub-segment is hit */
|
||||
+ public int subHit = -1;
|
||||
|
||||
+
|
||||
+ /** Used to add extra hit info */
|
||||
+ public Object hitInfo = null;
|
||||
+
|
||||
public MovingObjectPosition(int par1, int par2, int par3, int par4, Vec3 par5Vec3)
|
||||
{
|
||||
this.typeOfHit = EnumMovingObjectType.TILE;
|
||||
|
|
Loading…
Reference in a new issue