Jump to content

Base Classes


Texasjake95

Recommended Posts

What I am wanting to change is part of the MovingObjectPosition

Β 

Β 

package net.minecraft.src;

public class MovingObjectPosition
{
Β  Β  /** What type of ray trace hit was this? 0 = block, 1 = entity */
Β  Β  public EnumMovingObjectType typeOfHit;

Β  Β  /** x coordinate of the block ray traced against */
Β  Β  public int blockX;

Β  Β  /** y coordinate of the block ray traced against */
Β  Β  public int blockY;

Β  Β  /** z coordinate of the block ray traced against */
Β  Β  public int blockZ;

Β  Β  /**
Β  Β   * Which side was hit. If its -1 then it went the full length of the ray trace. Bottom = 0, Top = 1, East = 2, West
Β  Β   * = 3, North = 4, South = 5.
Β  Β   */
Β  Β  public int sideHit;

Β  Β  /** The vector position of the hit */
Β  Β  public Vec3D hitVec;

Β  Β  /** The hit entity */
Β  Β  public Entity entityHit;
Β  Β  
Β  Β  /** Used to determine what sub-segment is hit */
Β  Β  public int subHit = -1;

Β  Β  public MovingObjectPosition(int par1, int par2, int par3, int par4, Vec3D par5Vec3D)
Β  Β  {
Β  Β  Β  Β  this.typeOfHit = EnumMovingObjectType.TILE;
Β  Β  Β  Β  this.blockX = par1;
Β  Β  Β  Β  this.blockY = par2;
Β  Β  Β  Β  this.blockZ = par3;
Β  Β  Β  Β  this.sideHit = par4;
Β  Β  Β  Β  this.hitVec = Vec3D.createVector(par5Vec3D.xCoord, par5Vec3D.yCoord, par5Vec3D.zCoord);
Β  Β  }

Β  Β  public MovingObjectPosition(Entity par1Entity)
Β  Β  {
Β  Β  Β  Β  this.typeOfHit = EnumMovingObjectType.ENTITY;
Β  Β  Β  Β  this.entityHit = par1Entity;
Β  Β  Β  Β  this.hitVec = Vec3D.createVector(par1Entity.posX, par1Entity.posY, par1Entity.posZ);
Β  Β  }
}

Β 

Β 

I want the line

public Entity entityHit;

to be

public static Entity entityHit;

Β 

Would that be possible?

Link to comment
Share on other sites

What I am wanting to change is part of the MovingObjectPosition

Β 

Β 

package net.minecraft.src;

public class MovingObjectPosition
{
Β  Β  /** What type of ray trace hit was this? 0 = block, 1 = entity */
Β  Β  public EnumMovingObjectType typeOfHit;

Β  Β  /** x coordinate of the block ray traced against */
Β  Β  public int blockX;

Β  Β  /** y coordinate of the block ray traced against */
Β  Β  public int blockY;

Β  Β  /** z coordinate of the block ray traced against */
Β  Β  public int blockZ;

Β  Β  /**
Β  Β   * Which side was hit. If its -1 then it went the full length of the ray trace. Bottom = 0, Top = 1, East = 2, West
Β  Β   * = 3, North = 4, South = 5.
Β  Β   */
Β  Β  public int sideHit;

Β  Β  /** The vector position of the hit */
Β  Β  public Vec3D hitVec;

Β  Β  /** The hit entity */
Β  Β  public Entity entityHit;
Β  Β  
Β  Β  /** Used to determine what sub-segment is hit */
Β  Β  public int subHit = -1;

Β  Β  public MovingObjectPosition(int par1, int par2, int par3, int par4, Vec3D par5Vec3D)
Β  Β  {
Β  Β  Β  Β  this.typeOfHit = EnumMovingObjectType.TILE;
Β  Β  Β  Β  this.blockX = par1;
Β  Β  Β  Β  this.blockY = par2;
Β  Β  Β  Β  this.blockZ = par3;
Β  Β  Β  Β  this.sideHit = par4;
Β  Β  Β  Β  this.hitVec = Vec3D.createVector(par5Vec3D.xCoord, par5Vec3D.yCoord, par5Vec3D.zCoord);
Β  Β  }

Β  Β  public MovingObjectPosition(Entity par1Entity)
Β  Β  {
Β  Β  Β  Β  this.typeOfHit = EnumMovingObjectType.ENTITY;
Β  Β  Β  Β  this.entityHit = par1Entity;
Β  Β  Β  Β  this.hitVec = Vec3D.createVector(par1Entity.posX, par1Entity.posY, par1Entity.posZ);
Β  Β  }
}

Β 

Β 

I want the line

public Entity entityHit;

to be

public static Entity entityHit;

Β 

Would that be possible?

Β 

Do you know exactly what static does... ?

Link to comment
Share on other sites

No... and the code i was using gave me some unexpected results... so no longer need it

Β 

A bit of a tip here: You should put your code down. Go learn Java, make a few test programs, follow some tutorials, and then pick your code back up again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Slot Bank BRI atau Daftar slot Bank BRI bisa anda lakukan pada situs Museumbola kapanpun dan dimanapun, Bermodalkan Hp saja anda bisa mengakses chat ke agen kami selama 24 jam full. keuntungan bergabung bersama kami di Museumbola adalah anda akan mendapatkan bonus 50% khusus member baru yang bergabung dan deposit. Tidak perlu banyak, 10 ribu rupiah saja anda sudah bisa bermain bersama kami di Museumbola. Tunggu apa lagi ? Segera Klik DAFTAR dan anda akan jadi Jutawan dalam semalam.
    • Museumbola adalah situs judi slot BANK BCA tergacor 2024 dengan minimal deposit Β 10 ribu rupiah saja anda sudah bisa spin slot gacor di Museumbola. Mulai dari Pragmatic, Pg Soft, Habanero, Playstar, Spadegaming, dan masih banyak lagi. Pilihan slot yang begitu banyak tidak akan membuat anda bosan. Segera daftarkan BANK BCA anda dan jadi member aktif Museumbola. anda akan diberi kesempatan mendapatkan bonus deposit harian setiap hari. Segera Klik DAFTAR sekarang juga sebelum terlambat. Β 
    • Slot BANK BCA adalah pilihan tergacor untuk memulai bermain slot judi Online dimuka bumi saat ini. Jika anda mempunyai BANK BCA, Anda berkesempatan mendapatkan Akun Pro atau ID pro untuk bermain slot. Tunggu apa lagi? Segera daftarkan diri anda sekarang dan dapatkan kemewahan menang maxwin di Museumbola.
    • SLOT SCATTER HITAM : SLOT MAHJONG SCATTER HITAM - MAHJONG WAYS SCATTER HITAM - SLOT PRAGMATIC SCATTER HITAM KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << SITUS SLOT GACOR 88 MAXWIN X500 HARI INI TERBAIK DAN TERPERCAYA GAMPANG MENANG Dunia Game gacor terus bertambah besar seiring berjalannya waktu, dan sudah tentu dunia itu terus berkembang serta merta bersamaan dengan berkembangnya SLOT GACOR sebagai website number #1 yang pernah ada dan tidak pernah mengecewakan sekalipun. Dengan banyaknya member yang sudah mempercayakan untuk terus menghasilkan uang bersama dengan SLOT GACOR pastinya mereka sudah percaya untuk bermain Game online bersama dengan kami dengan banyaknya testimoni yang sudah membuktikan betapa seringnya member mendapatkan jackpot besar yang bisa mencapai ratusan juta rupiah. Best online Game website that give you more money everyday, itu lah slogan yang tepat untuk bermain bersama SLOT GACOR yang sudah pasti menang setiap harinya dan bisa menjadikan bandar ini sebagai patokan untuk mendapatkan penghasilan tambahan yang efisien dan juga sesuatu hal yang fix setiap hari nya. Kami juga mendapatkan julukan sebagai Number #1 website bocor yang berarti terus memberikan member uang asli dan jackpot setiap hari nya, tidak lupa bocor itu juga bisa diartikan dalam bentuk berbagi promosi untuk para official member yang terus setia bermain bersama dengan kami. Berbagai provider Game terus bertambah banyak setiap harinya dan terus melakukan support untuk membuat para official member terus bisa menang dan terus maxwin dalam bentuk apapun maka itu langsung untuk feel free to try yourself, play with SLOT GACOR now or never !
    • SLOT 1000 : SLOT1000 DEPOSIT 1000 VIA DANA - SLOT 1000 VIA QRIS - SLOT DEPOSIT QRIS 1000 - SLOT DEPO 1K - SLOT 1000 BET KECIL KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << SITUS SLOT GACOR 88 MAXWIN X500 HARI INI TERBAIK DAN TERPERCAYA GAMPANG MENANG Dunia Game gacor terus bertambah besar seiring berjalannya waktu, dan sudah tentu dunia itu terus berkembang serta merta bersamaan dengan berkembangnya SLOT GACOR sebagai website number #1 yang pernah ada dan tidak pernah mengecewakan sekalipun. Dengan banyaknya member yang sudah mempercayakan untuk terus menghasilkan uang bersama dengan SLOT GACOR pastinya mereka sudah percaya untuk bermain Game online bersama dengan kami dengan banyaknya testimoni yang sudah membuktikan betapa seringnya member mendapatkan jackpot besar yang bisa mencapai ratusan juta rupiah. Best online Game website that give you more money everyday, itu lah slogan yang tepat untuk bermain bersama SLOT GACOR yang sudah pasti menang setiap harinya dan bisa menjadikan bandar ini sebagai patokan untuk mendapatkan penghasilan tambahan yang efisien dan juga sesuatu hal yang fix setiap hari nya. Kami juga mendapatkan julukan sebagai Number #1 website bocor yang berarti terus memberikan member uang asli dan jackpot setiap hari nya, tidak lupa bocor itu juga bisa diartikan dalam bentuk berbagi promosi untuk para official member yang terus setia bermain bersama dengan kami. Berbagai provider Game terus bertambah banyak setiap harinya dan terus melakukan support untuk membuat para official member terus bisa menang dan terus maxwin dalam bentuk apapun maka itu langsung untuk feel free to try yourself, play with SLOT GACOR now or never !
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.