Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class MovingObjectPosition {
4
5 public EnumMovingObjectType type;
6 public int b;
7 public int c;
8 public int d;
9 public int face;
10 public Vec3D f;
11 public Entity entity;
12
13 public MovingObjectPosition(int i, int j, int k, int l, Vec3D vec3d) {
14 this.type = EnumMovingObjectType.TILE;
15 this.b = i;
16 this.c = j;
17 this.d = k;
18 this.face = l;
19 this.f = Vec3D.create(vec3d.a, vec3d.b, vec3d.c);
20 }
21
22 public MovingObjectPosition(Entity entity) {
23 this.type = EnumMovingObjectType.ENTITY;
24 this.entity = entity;
25 this.f = Vec3D.create(entity.locX, entity.locY, entity.locZ);
26 }
27}