Package net.minecraft.world.phys
Part 1/1
AABB
- Full name:
net.minecraft.world.phys.AABB - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/AABB.java - Type:
class - Modifiers:
public
net.minecraft.world.phys.AABB#AABB(BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:30 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AABB ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ().
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#AABB(double,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AABB ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: minX, minY, minZ, maxX, maxY, maxZ. เรียกต่อ: min(), max().
Parameters
double ddouble edouble fdouble gdouble hdouble i
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#AABB(Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:34 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ AABB ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#clip(double,double,double,double,double,double,Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:299 - Modifiers:
public static - Return:
Optional<Vec3>
คืออะไร
ดำเนินการ clip ตาม implementation ของ AABB
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: getDirection(), empty(), of(), add(). มีจุด return อย่างน้อย 2 จุด.
Parameters
double ddouble edouble fdouble gdouble hdouble iVec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
Vec3 vec32 = ...;
Optional<Vec3> result = AABB.clip(0.0D, 0.0D, 0.0D, 0.0D, 0.0D, 0.0D, vec3, vec32);
net.minecraft.world.phys.AABB#clip(Iterable<AABB>,Vec3,Vec3,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:313 - Modifiers:
public static - Return:
BlockHitResult
คืออะไร
ดำเนินการ clip ตาม implementation ของ AABB
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getDirection(), move(), add(). สร้างออบเจ็กต์: BlockHitResult. มีจุด return อย่างน้อย 2 จุด.
Parameters
Iterable<AABB> iterableVec3 vec3Vec3 vec32BlockPos blockPos
ตัวอย่างใช้งาน
Iterable<AABB> iterable = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
BlockPos blockPos = ...;
BlockHitResult result = AABB.clip(iterable, vec3, vec32, blockPos);
net.minecraft.world.phys.AABB#clip(Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:295 - Modifiers:
public - Return:
Optional<Vec3>
คืออะไร
ดำเนินการ clip ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: clip(this.minX, this.minY, this.minZ, this.maxX, this.maxY, this.maxZ, vec3, vec32).
Parameters
Vec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
AABB instance = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
Optional<Vec3> result = instance.clip(vec3, vec32);
net.minecraft.world.phys.AABB#collidedAlongVector(Vec3,List<AABB>)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:391 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ collidedAlongVector ตาม implementation ของ AABB
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getCenter(), add(), inflate(), getXsize(), getYsize(), getZsize(), contains(), clip(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Vec3 vec3List<AABB> list
ตัวอย่างใช้งาน
AABB instance = ...;
Vec3 vec3 = ...;
List<AABB> list = ...;
boolean result = instance.collidedAlongVector(vec3, list);
net.minecraft.world.phys.AABB#contains(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:264 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี contains
ทำงานยังไง
คืนค่า: d >= this.minX && d < this.maxX && e >= this.minY && e < this.maxY && f >= this.minZ && f < this.maxZ.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#contains(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:260 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี contains
ทำงานยังไง
คืนค่า: this.contains(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#contract(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:124 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ contract ตาม implementation ของ AABB
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(g, h, i, j, k, l).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#deflate(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:291 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ deflate ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: inflate(). คืนค่า: this.inflate(-d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#deflate(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:287 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ deflate ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: inflate(). คืนค่า: this.inflate(-d, -e, -f).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#distanceToSqr(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:409 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: max(), lengthSquared(). คืนค่า: Mth.lengthSquared(d, e, f).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#encapsulatingFullBlocks(BlockPos,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:46 - Modifiers:
public static - Return:
AABB
คืออะไร
ดำเนินการ encapsulatingFullBlocks ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: min(), getX(), getY(), getZ(), max(). สร้างออบเจ็กต์: AABB.
Parameters
BlockPos blockPosBlockPos blockPos2
ตัวอย่างใช้งาน
BlockPos blockPos = ...;
BlockPos blockPos2 = ...;
AABB result = AABB.encapsulatingFullBlocks(blockPos, blockPos2);
net.minecraft.world.phys.AABB#equals(Object)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:89 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: compare(). มีจุด return อย่างน้อย 7 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#expandTowards(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:156 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ expandTowards ตาม implementation ของ AABB
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(g, h, i, j, k, l).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#expandTowards(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:152 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ expandTowards ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: this.expandTowards(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getBottomCenter()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:434 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Bottom Center
ทำงานยังไง
เรียกต่อ: lerp(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(Mth.lerp(0.5, this.minX, this.maxX), this.minY, Mth.lerp(0.5, this.minZ, this.maxZ)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getCenter()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:430 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Center
ทำงานยังไง
เรียกต่อ: lerp(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(Mth.lerp(0.5, this.minX, this.maxX), Mth.lerp(0.5, this.minY, this.maxY), Mth.lerp(0.5, this.minZ, this.maxZ)).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getMaxPosition()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:442 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Max Position
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.maxX, this.maxY, this.maxZ).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getMinPosition()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:438 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Min Position
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.minX, this.minY, this.minZ).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getSize()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:268 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Size
ทำงานยังไง
เรียกต่อ: getXsize(), getYsize(), getZsize(). คืนค่า: (d + e + f) / 3.0.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getXsize()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:275 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Xsize
ทำงานยังไง
คืนค่า: this.maxX - this.minX.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getYsize()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:279 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Ysize
ทำงานยังไง
คืนค่า: this.maxY - this.minY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#getZsize()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:283 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Zsize
ทำงานยังไง
คืนค่า: this.maxZ - this.minZ.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#hashCode()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:108 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: doubleToLongBits(). คืนค่า: 31 * i + (int)(l ^ l >>> 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#hasNaN()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:421 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่ามี Na N
ทำงานยังไง
เรียกต่อ: isNaN().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#inflate(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:194 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ inflate ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: this.inflate(d, d, d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#inflate(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:184 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ inflate ตาม implementation ของ AABB
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(g, h, i, j, k, l).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#intersect(AABB)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:198 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ intersect ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: max(), min(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(d, e, f, g, h, i).
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#intersects(AABB)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:241 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ intersects ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: this.intersects(aABB.minX, aABB.minY, aABB.minZ, aABB.maxX, aABB.maxY, aABB.maxZ).
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#intersects(double,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:245 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ intersects ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: this.minX < g && this.maxX > d && this.minY < h && this.maxY > e && this.minZ < i && this.maxZ > f.
Parameters
double ddouble edouble fdouble gdouble hdouble i
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#intersects(Vec3,Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:249 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ intersects ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: min(), max().
Parameters
Vec3 vec3Vec3 vec32
ตัวอย่างใช้งาน
AABB instance = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
boolean result = instance.intersects(vec3, vec32);
net.minecraft.world.phys.AABB#max(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:85 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ max ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.maxX, this.maxY, this.maxZ).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#min(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:81 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ min ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.minX, this.minY, this.minZ).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#minmax(AABB)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:208 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ minmax ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: min(), max(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(d, e, f, g, h, i).
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#move(BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:222 - Modifiers:
public - Return:
AABB
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). สร้างออบเจ็กต์: AABB.
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#move(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:218 - Modifiers:
public - Return:
AABB
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX + d, this.minY + e, this.minZ + f, this.maxX + d, this.maxY + e, this.maxZ + f).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#move(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:233 - Modifiers:
public - Return:
AABB
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
คืนค่า: this.move(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#move(Vector3f)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:237 - Modifiers:
public - Return:
AABB
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
คืนค่า: this.move(vector3f.x, vector3f.y, vector3f.z).
Parameters
Vector3f vector3f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#of(BoundingBox)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:38 - Modifiers:
public static - Return:
AABB
คืออะไร
ดำเนินการ of ตาม implementation ของ AABB
ทำงานยังไง
เรียกต่อ: minX(), minY(), minZ(), maxX(), maxY(), maxZ(). สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(boundingBox.minX(), boundingBox.minY(), boundingBox.minZ(), boundingBox.maxX() + 1, boundingBox.maxY() + 1, boundingBox.maxZ() + 1).
Parameters
BoundingBox boundingBox
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#ofSize(Vec3,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:446 - Modifiers:
public static - Return:
AABB
คืออะไร
ดำเนินการ ofSize ตาม implementation ของ AABB
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(vec3.x - d / 2.0, vec3.y - e / 2.0, vec3.z - f / 2.0, vec3.x + d / 2.0, vec3.y + e / 2.0, vec3.z + f / 2.0).
Parameters
Vec3 vec3double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMaxX(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:69 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Max X
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX, this.minY, this.minZ, d, this.maxY, this.maxZ).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMaxY(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:73 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Max Y
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX, this.minY, this.minZ, this.maxX, d, this.maxZ).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMaxZ(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:77 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Max Z
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX, this.minY, this.minZ, this.maxX, this.maxY, d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMinX(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:57 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Min X
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(d, this.minY, this.minZ, this.maxX, this.maxY, this.maxZ).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMinY(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:61 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Min Y
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX, d, this.minZ, this.maxX, this.maxY, this.maxZ).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#setMinZ(double)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:65 - Modifiers:
public - Return:
AABB
คืออะไร
กำหนดค่า Min Z
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(this.minX, this.minY, d, this.maxX, this.maxY, this.maxZ).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#toString()
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:416 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ AABB
ทำงานยังไง
คืนค่า: "AABB[" + this.minX + ", " + this.minY + ", " + this.minZ + "] -> [" + this.maxX + ", " + this.maxY + ", " + this.maxZ + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.AABB#unitCubeFromLowerCorner(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/AABB.java:42 - Modifiers:
public static - Return:
AABB
คืออะไร
ดำเนินการ unitCubeFromLowerCorner ตาม implementation ของ AABB
ทำงานยังไง
สร้างออบเจ็กต์: AABB. คืนค่า: new AABB(vec3.x, vec3.y, vec3.z, vec3.x + 1.0, vec3.y + 1.0, vec3.z + 1.0).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
BlockHitResult
- Full name:
net.minecraft.world.phys.BlockHitResult - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/BlockHitResult.java - Type:
class - Modifiers:
public - Extends:
HitResult
net.minecraft.world.phys.BlockHitResult#BlockHitResult(Vec3,Direction,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockHitResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3Direction directionBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
Direction direction = ...;
BlockPos blockPos = ...;
BlockHitResult instance = new BlockHitResult(vec3, direction, blockPos, true);
net.minecraft.world.phys.BlockHitResult#BlockHitResult(Vec3,Direction,BlockPos,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:21 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BlockHitResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
Vec3 vec3Direction directionBlockPos blockPosboolean blboolean bl2
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
Direction direction = ...;
BlockPos blockPos = ...;
BlockHitResult instance = new BlockHitResult(vec3, direction, blockPos, true, true);
net.minecraft.world.phys.BlockHitResult#getBlockPos()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:46 - Modifiers:
public - Return:
BlockPos
คืออะไร
อ่านค่า Block Pos
ทำงานยังไง
คืนค่า: this.blockPos.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#getDirection()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:50 - Modifiers:
public - Return:
Direction
คืออะไร
อ่านค่า Direction
ทำงานยังไง
คืนค่า: this.direction.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#getType()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:54 - Modifiers:
public - Return:
HitResult.Type
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: this.miss ? HitResult.Type.MISS : HitResult.Type.BLOCK.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#hitBorder()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:42 - Modifiers:
public - Return:
BlockHitResult
คืออะไร
ดำเนินการ hitBorder ตาม implementation ของ BlockHitResult
ทำงานยังไง
สร้างออบเจ็กต์: BlockHitResult. คืนค่า: new BlockHitResult(this.miss, this.location, this.direction, this.blockPos, this.inside, true).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#isInside()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:59 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Inside
ทำงานยังไง
คืนค่า: this.inside.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#isWorldBorderHit()
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:63 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ World Border Hit
ทำงานยังไง
คืนค่า: this.worldBorderHit.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.BlockHitResult#miss(Vec3,Direction,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:13 - Modifiers:
public static - Return:
BlockHitResult
คืออะไร
ดำเนินการ miss ตาม implementation ของ BlockHitResult
ทำงานยังไง
สร้างออบเจ็กต์: BlockHitResult. คืนค่า: new BlockHitResult(true, vec3, direction, blockPos, false, false).
Parameters
Vec3 vec3Direction directionBlockPos blockPos
ตัวอย่างใช้งาน
Vec3 vec3 = ...;
Direction direction = ...;
BlockPos blockPos = ...;
BlockHitResult result = BlockHitResult.miss(vec3, direction, blockPos);
net.minecraft.world.phys.BlockHitResult#withDirection(Direction)
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:34 - Modifiers:
public - Return:
BlockHitResult
คืออะไร
ดำเนินการ withDirection ตาม implementation ของ BlockHitResult
ทำงานยังไง
สร้างออบเจ็กต์: BlockHitResult. คืนค่า: new BlockHitResult(this.miss, this.location, direction, this.blockPos, this.inside, this.worldBorderHit).
Parameters
Direction direction
ตัวอย่างใช้งาน
BlockHitResult instance = ...;
Direction direction = ...;
BlockHitResult result = instance.withDirection(direction);
net.minecraft.world.phys.BlockHitResult#withPosition(BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/BlockHitResult.java:38 - Modifiers:
public - Return:
BlockHitResult
คืออะไร
ดำเนินการ withPosition ตาม implementation ของ BlockHitResult
ทำงานยังไง
สร้างออบเจ็กต์: BlockHitResult. คืนค่า: new BlockHitResult(this.miss, this.location, this.direction, blockPos, this.inside, this.worldBorderHit).
Parameters
BlockPos blockPos
ตัวอย่างใช้งาน
BlockHitResult instance = ...;
BlockPos blockPos = ...;
BlockHitResult result = instance.withPosition(blockPos);
EntityHitResult
- Full name:
net.minecraft.world.phys.EntityHitResult - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/EntityHitResult.java - Type:
class - Modifiers:
public - Extends:
HitResult
net.minecraft.world.phys.EntityHitResult#EntityHitResult(Entity)
- Origin:
common - Source:
net/minecraft/world/phys/EntityHitResult.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityHitResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: position().
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.phys.EntityHitResult#EntityHitResult(Entity,Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/EntityHitResult.java:12 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityHitResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: entity.
Parameters
Entity entityVec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.EntityHitResult#getEntity()
- Origin:
common - Source:
net/minecraft/world/phys/EntityHitResult.java:17 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Entity
ทำงานยังไง
คืนค่า: this.entity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.EntityHitResult#getType()
- Origin:
common - Source:
net/minecraft/world/phys/EntityHitResult.java:21 - Modifiers:
public - Return:
HitResult.Type
คืออะไร
อ่านค่า Type
ทำงานยังไง
คืนค่า: HitResult.Type.ENTITY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
HitResult
- Full name:
net.minecraft.world.phys.HitResult - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/HitResult.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.phys.HitResult#distanceTo(Entity)
- Origin:
common - Source:
net/minecraft/world/phys/HitResult.java:12 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceTo ตาม implementation ของ HitResult
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). คืนค่า: d * d + e * e + f * f.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.phys.HitResult#getLocation()
- Origin:
common - Source:
net/minecraft/world/phys/HitResult.java:21 - Modifiers:
public - Return:
Vec3
คืออะไร
อ่านค่า Location
ทำงานยังไง
คืนค่า: this.location.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.HitResult#getType()
- Origin:
common - Source:
net/minecraft/world/phys/HitResult.java:19 - Modifiers:
public abstract - Return:
HitResult.Type
คืออะไร
อ่านค่า Type
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.HitResult#HitResult(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/HitResult.java:8 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ HitResult ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: location.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
Vec2
- Full name:
net.minecraft.world.phys.Vec2 - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/Vec2.java - Type:
class - Modifiers:
public
net.minecraft.world.phys.Vec2#add(float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:34 - Modifiers:
public - Return:
Vec2
คืออะไร
เพิ่ม add
ทำงานยังไง
สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(this.x + f, this.y + f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#add(Vec2)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:30 - Modifiers:
public - Return:
Vec2
คืออะไร
เพิ่ม add
ทำงานยังไง
สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(this.x + vec2.x, this.y + vec2.y).
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#distanceToSqr(Vec2)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:55 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Vec2
ทำงานยังไง
คืนค่า: f * f + g * g.
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#dot(Vec2)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:26 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ dot ตาม implementation ของ Vec2
ทำงานยังไง
คืนค่า: this.x * vec2.x + this.y * vec2.y.
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#equals(Vec2)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:38 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
แก้ state: x, y. คืนค่า: this.x == vec2.x && this.y == vec2.y.
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#length()
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:47 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ length ตาม implementation ของ Vec2
ทำงานยังไง
เรียกต่อ: sqrt(). คืนค่า: Mth.sqrt(this.x * this.x + this.y * this.y).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#lengthSquared()
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:51 - Modifiers:
public - Return:
float
คืออะไร
ดำเนินการ lengthSquared ตาม implementation ของ Vec2
ทำงานยังไง
คืนค่า: this.x * this.x + this.y * this.y.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#negated()
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:61 - Modifiers:
public - Return:
Vec2
คืออะไร
ดำเนินการ negated ตาม implementation ของ Vec2
ทำงานยังไง
สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(-this.x, -this.y).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#normalized()
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:42 - Modifiers:
public - Return:
Vec2
คืออะไร
ดำเนินการ normalized ตาม implementation ของ Vec2
ทำงานยังไง
เรียกต่อ: sqrt(). สร้างออบเจ็กต์: Vec2. คืนค่า: f < 1.0E-4F ? ZERO : new Vec2(this.x / f, this.y / f).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#scale(float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:22 - Modifiers:
public - Return:
Vec2
คืออะไร
ดำเนินการ scale ตาม implementation ของ Vec2
ทำงานยังไง
สร้างออบเจ็กต์: Vec2. คืนค่า: new Vec2(this.x * f, this.y * f).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec2#Vec2(float,float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec2.java:17 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec2 ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: x, y.
Parameters
float ffloat g
ตัวอย่างใช้งาน
Vec3
- Full name:
net.minecraft.world.phys.Vec3 - Package:
net.minecraft.world.phys - Source:
common—net/minecraft/world/phys/Vec3.java - Type:
class - Modifiers:
public - Implements:
Position
net.minecraft.world.phys.Vec3#add(double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:108 - Modifiers:
public - Return:
Vec3
คืออะไร
เพิ่ม add
ทำงานยังไง
คืนค่า: this.add(d, d, d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#add(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:116 - Modifiers:
public - Return:
Vec3
คืออะไร
เพิ่ม add
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.x + d, this.y + e, this.z + f).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#add(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:112 - Modifiers:
public - Return:
Vec3
คืออะไร
เพิ่ม add
ทำงานยังไง
คืนค่า: this.add(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#align(EnumSet<Direction.Axis>)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:263 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ align ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: contains(), floor(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, f).
Parameters
EnumSet<Direction.Axis> enumSet
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#atBottomCenterOf(Vec3i)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:57 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ atBottomCenterOf ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: atLowerCornerWithOffset(). คืนค่า: atLowerCornerWithOffset(vec3i, 0.5, 0.0, 0.5).
Parameters
Vec3i vec3i
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#atCenterOf(Vec3i)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:53 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ atCenterOf ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: atLowerCornerWithOffset(). คืนค่า: atLowerCornerWithOffset(vec3i, 0.5, 0.5, 0.5).
Parameters
Vec3i vec3i
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#atLowerCornerOf(Vec3i)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:45 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ atLowerCornerOf ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(vec3i.getX(), vec3i.getY(), vec3i.getZ()).
Parameters
Vec3i vec3i
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#atLowerCornerWithOffset(Vec3i,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:49 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ atLowerCornerWithOffset ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(vec3i.getX() + d, vec3i.getY() + e, vec3i.getZ() + f).
Parameters
Vec3i vec3idouble ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#closerThan(Position,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:120 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ closerThan ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: distanceToSqr(), x(), y(), z(). คืนค่า: this.distanceToSqr(position.x(), position.y(), position.z()) < d * d.
Parameters
Position positiondouble d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#closerThan(Vec3,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:145 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ closerThan ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: x(), y(), z(), lengthSquared(), square(), abs(). คืนค่า: Mth.lengthSquared(f, h) < Mth.square(d) && Math.abs(g) < e.
Parameters
Vec3 vec3double ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#cross(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:92 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ cross ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.y * vec3.z - this.z * vec3.y, this.z * vec3.x - this.x * vec3.z, this.x * vec3.y - this.y * vec3.x).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#directionFromRotation(float,float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:255 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ directionFromRotation ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: cos(), sin(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(i * j, k, h * j).
Parameters
float ffloat g
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#directionFromRotation(Vec2)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:251 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ directionFromRotation ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: directionFromRotation(vec2.x, vec2.y).
Parameters
Vec2 vec2
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#distanceTo(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:124 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceTo ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: sqrt(). คืนค่า: Math.sqrt(d * d + e * e + f * f).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#distanceToSqr(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:138 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: g * g + h * h + i * i.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#distanceToSqr(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:131 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ distanceToSqr ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: d * d + e * e + f * f.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#dot(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:88 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ dot ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.x * vec3.x + this.y * vec3.y + this.z * vec3.z.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#equals(Object)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:192 - Modifiers:
public - Return:
boolean
คืออะไร
เปรียบเทียบความเท่ากัน equals
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: compare(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Object object
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#fromRGB24(int)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:38 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ fromRGB24 ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, f).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#get(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:270 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.x, this.y, this.z).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#hashCode()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:205 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ hashCode ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: doubleToLongBits(). คืนค่า: 31 * i + (int)(l ^ l >>> 32).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#horizontal()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:168 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ horizontal ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.x, 0.0, this.z).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#horizontalDistance()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:184 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ horizontalDistance ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: sqrt(). คืนค่า: Math.sqrt(this.x * this.x + this.z * this.z).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#horizontalDistanceSqr()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:188 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ horizontalDistanceSqr ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.x * this.x + this.z * this.z.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#length()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:176 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ length ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: sqrt(). คืนค่า: Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#lengthSqr()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:180 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ lengthSqr ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.x * this.x + this.y * this.y + this.z * this.z.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#lerp(Vec3,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:220 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ lerp ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(Mth.lerp(d, this.x, vec3.x), Mth.lerp(d, this.y, vec3.y), Mth.lerp(d, this.z, vec3.z)).
Parameters
Vec3 vec3double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#multiply(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:164 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ multiply ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.x * d, this.y * e, this.z * f).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#multiply(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:160 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ multiply ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.multiply(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#normalize()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:83 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ normalize ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: sqrt(). สร้างออบเจ็กต์: Vec3. คืนค่า: d < 1.0E-5F ? ZERO : new Vec3(this.x / d, this.y / d, this.z / d).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#offsetRandom(RandomSource,float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:172 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ offsetRandom ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: add(), nextFloat(). คืนค่า: this.add((randomSource.nextFloat() - 0.5F) * f, (randomSource.nextFloat() - 0.5F) * f, (randomSource.nextFloat() - 0.5F) * f).
Parameters
RandomSource randomSourcefloat f
ตัวอย่างใช้งาน
Vec3 instance = ...;
RandomSource randomSource = ...;
Vec3 result = instance.offsetRandom(randomSource, 0.0F);
net.minecraft.world.phys.Vec3#projectedOn(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:305 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ projectedOn ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: lengthSqr(), scale(), dot(). คืนค่า: vec3.lengthSqr() == 0.0 ? vec3 : vec3.scale(this.dot(vec3)).scale(1.0 / vec3.lengthSqr()).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#relative(Direction,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:281 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ relative ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: getUnitVec3i(), getX(), getY(), getZ(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(this.x + d * vec3i.getX(), this.y + d * vec3i.getY(), this.z + d * vec3i.getZ()).
Parameters
Direction directiondouble d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#reverse()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:156 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ reverse ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: scale(). คืนค่า: this.scale(-1.0).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#scale(double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:152 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ scale ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: multiply(). คืนค่า: this.multiply(d, d, d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#subtract(double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:100 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ subtract ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.subtract(d, d, d).
Parameters
double d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#subtract(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:104 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ subtract ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: add(). คืนค่า: this.add(-d, -e, -f).
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#subtract(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:96 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ subtract ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.subtract(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#toString()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:215 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: "(" + this.x + ", " + this.y + ", " + this.z + ")".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#toVector3f()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:301 - Modifiers:
public - Return:
Vector3f
คืออะไร
ดำเนินการ toVector3f ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vector3f. คืนค่า: new Vector3f((float)this.x, (float)this.y, (float)this.z).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#upFromBottomCenterOf(Vec3i,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:61 - Modifiers:
public static - Return:
Vec3
คืออะไร
ดำเนินการ upFromBottomCenterOf ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: atLowerCornerWithOffset(). คืนค่า: atLowerCornerWithOffset(vec3i, 0.5, d, 0.5).
Parameters
Vec3i vec3idouble d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#Vec3(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:65 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec3 ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: x, y, z.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#Vec3(Vec3i)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:75 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec3 ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: getX(), getY(), getZ().
Parameters
Vec3i vec3i
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#Vec3(Vector3f)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:71 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ Vec3 ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: x(), y(), z().
Parameters
Vector3f vector3f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#vectorTo(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:79 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ vectorTo ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(vec3.x - this.x, vec3.y - this.y, vec3.z - this.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#with(Direction.Axis,double)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:274 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ with ตาม implementation ของ Vec3
ทำงานยังไง
สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(e, f, g).
Parameters
Direction.Axis axisdouble d
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#x()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:286 - Modifiers:
public final - Return:
double
คืออะไร
ดำเนินการ x ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.x.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#xRot(float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:224 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ xRot ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: cos(), sin(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, i).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#y()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:291 - Modifiers:
public final - Return:
double
คืออะไร
ดำเนินการ y ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.y.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#yRot(float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:233 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ yRot ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: cos(), sin(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, i).
Parameters
float f
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#z()
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:296 - Modifiers:
public final - Return:
double
คืออะไร
ดำเนินการ z ตาม implementation ของ Vec3
ทำงานยังไง
คืนค่า: this.z.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.Vec3#zRot(float)
- Origin:
common - Source:
net/minecraft/world/phys/Vec3.java:242 - Modifiers:
public - Return:
Vec3
คืออะไร
ดำเนินการ zRot ตาม implementation ของ Vec3
ทำงานยังไง
เรียกต่อ: cos(), sin(). สร้างออบเจ็กต์: Vec3. คืนค่า: new Vec3(d, e, i).
Parameters
float f