コード例 #1
0
 public EntityTrackerEntry(Entity entity, int i, int j, boolean flag) {
   this.tracker = entity;
   this.b = i;
   this.c = j;
   this.isMoving = flag;
   this.xLoc = MathHelper.floor(entity.locX * 32.0D);
   this.yLoc = MathHelper.floor(entity.locY * 32.0D);
   this.zLoc = MathHelper.floor(entity.locZ * 32.0D);
   this.yRot = MathHelper.d(entity.yaw * 256.0F / 360.0F);
   this.xRot = MathHelper.d(entity.pitch * 256.0F / 360.0F);
   this.i = MathHelper.d(entity.am() * 256.0F / 360.0F);
 }