예제 #1
0
  public OEntityThrowable(OWorld oworld, OEntityLiving oentityliving) {
    super(oworld);
    this.g = oentityliving;
    this.a(0.25F, 0.25F);
    this.b(
        oentityliving.u,
        oentityliving.v + (double) oentityliving.e(),
        oentityliving.w,
        oentityliving.A,
        oentityliving.B);
    this.u -= (double) (OMathHelper.b(this.A / 180.0F * 3.1415927F) * 0.16F);
    this.v -= 0.10000000149011612D;
    this.w -= (double) (OMathHelper.a(this.A / 180.0F * 3.1415927F) * 0.16F);
    this.b(this.u, this.v, this.w);
    this.N = 0.0F;
    float f = 0.4F;

    this.x =
        (double)
            (-OMathHelper.a(this.A / 180.0F * 3.1415927F)
                * OMathHelper.b(this.B / 180.0F * 3.1415927F)
                * f);
    this.z =
        (double)
            (OMathHelper.b(this.A / 180.0F * 3.1415927F)
                * OMathHelper.b(this.B / 180.0F * 3.1415927F)
                * f);
    this.y = (double) (-OMathHelper.a((this.B + this.d()) / 180.0F * 3.1415927F) * f);
    this.c(this.x, this.y, this.z, this.c(), 1.0F);
  }