Add hitInfo field to MovingObjectPosition for when an int doesn't suffice
This commit is contained in:
parent
63b59f078a
commit
24757402c2
1 changed files with 7 additions and 2 deletions
|
@ -1,12 +1,17 @@
|
||||||
--- ../src_base/minecraft/net/minecraft/util/MovingObjectPosition.java
|
--- ../src_base/minecraft/net/minecraft/util/MovingObjectPosition.java
|
||||||
+++ ../src_work/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 */
|
/** The hit entity */
|
||||||
public Entity entityHit;
|
public Entity entityHit;
|
||||||
|
-
|
||||||
+
|
+
|
||||||
+ /** Used to determine what sub-segment is hit */
|
+ /** Used to determine what sub-segment is hit */
|
||||||
+ public int subHit = -1;
|
+ 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)
|
public MovingObjectPosition(int par1, int par2, int par3, int par4, Vec3 par5Vec3)
|
||||||
{
|
{
|
||||||
|
this.typeOfHit = EnumMovingObjectType.TILE;
|
||||||
|
|
Loading…
Reference in a new issue