Example #1
0
 public MovingObjectPosition(int i, int j, int k, int l, Vec3D vec3d)
 {
     typeOfHit = EnumMovingObjectType.TILE;
     blockX = i;
     blockY = j;
     blockZ = k;
     sideHit = l;
     hitVec = Vec3D.createVector(vec3d.xCoord, vec3d.yCoord, vec3d.zCoord);
 }
Example #2
0
 public MovingObjectPosition(int par1, int par2, int par3, int par4, Vec3D par5Vec3D)
 {
     TypeOfHit = EnumMovingObjectType.TILE;
     BlockX    = par1;
     BlockY    = par2;
     BlockZ    = par3;
     SideHit   = par4;
     HitVec    = Vec3D.CreateVector(par5Vec3D.XCoord, par5Vec3D.YCoord, par5Vec3D.ZCoord);
 }
Example #3
0
        private static readonly EnumMovingObjectType[] field_21124_c; /* synthetic field */

        #endregion Fields

        #region Constructors

        static EnumMovingObjectType()
        {
            TILE = new EnumMovingObjectType("TILE", 0);
            ENTITY = new EnumMovingObjectType("ENTITY", 1);
            field_21124_c = (new[]
                             {
                                 TILE, ENTITY
                             });
        }
Example #4
0
 public MovingObjectPosition(int i, int j, int k, int l, Vec3D vec3d)
 {
     typeOfHit = EnumMovingObjectType.TILE;
     blockX    = i;
     blockY    = j;
     blockZ    = k;
     sideHit   = l;
     hitVec    = Vec3D.createVector(vec3d.xCoord, vec3d.yCoord, vec3d.zCoord);
 }
Example #5
0
        private static readonly EnumMovingObjectType[] field_21124_c; /* synthetic field */

        static EnumMovingObjectType()
        {
            TILE          = new EnumMovingObjectType("TILE", 0);
            ENTITY        = new EnumMovingObjectType("ENTITY", 1);
            field_21124_c = (new[]
            {
                TILE, ENTITY
            });
        }
Example #6
0
 public MovingObjectPosition(Entity par1Entity)
 {
     TypeOfHit = EnumMovingObjectType.ENTITY;
     EntityHit = par1Entity;
     HitVec    = Vec3D.CreateVector(par1Entity.PosX, par1Entity.PosY, par1Entity.PosZ);
 }
Example #7
0
 public MovingObjectPosition(Entity entity)
 {
     typeOfHit = EnumMovingObjectType.ENTITY;
     entityHit = entity;
     hitVec = Vec3D.createVector(entity.posX, entity.posY, entity.posZ);
 }
Example #8
0
 public MovingObjectPosition(Entity entity)
 {
     typeOfHit = EnumMovingObjectType.ENTITY;
     entityHit = entity;
     hitVec    = Vec3D.createVector(entity.posX, entity.posY, entity.posZ);
 }