Package net.minecraft.world.phys.shapes
Part 1/1
ArrayVoxelShape
- Full name:
net.minecraft.world.phys.shapes.ArrayVoxelShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/ArrayVoxelShape.java - Type:
class - Modifiers:
public - Extends:
VoxelShape
net.minecraft.world.phys.shapes.ArrayVoxelShape#ArrayVoxelShape(DiscreteVoxelShape,double[],double[],double[])
- Origin:
common - Source:
net/minecraft/world/phys/shapes/ArrayVoxelShape.java:14 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ ArrayVoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: wrap(), copyOf(), getXSize(), getYSize(), getZSize().
Parameters
DiscreteVoxelShape discreteVoxelShapedouble[] dsdouble[] esdouble[] fs
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
double[] ds = ...;
double[] es = ...;
double[] fs = ...;
ArrayVoxelShape instance = new ArrayVoxelShape(discreteVoxelShape, ds, es, fs);
net.minecraft.world.phys.shapes.ArrayVoxelShape#getCoords(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/ArrayVoxelShape.java:37 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า Coords
ทำงานยังไง
แยกกรณีด้วย switch. สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 3 จุด.
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
ArrayVoxelShape instance = ...;
Direction.Axis axis = ...;
DoubleList result = instance.getCoords(axis);
BitSetDiscreteVoxelShape
- Full name:
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java - Type:
class - Modifiers:
public final - Extends:
DiscreteVoxelShape
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#BitSetDiscreteVoxelShape(DiscreteVoxelShape)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:43 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BitSetDiscreteVoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: storage, xMin, yMin, zMin, xMax, yMax. เรียกต่อ: clone(), isFull(), set(), getIndex(), firstFull(), lastFull(). สร้างออบเจ็กต์: BitSet.
Parameters
DiscreteVoxelShape discreteVoxelShape
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
BitSetDiscreteVoxelShape instance = new BitSetDiscreteVoxelShape(discreteVoxelShape);
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#BitSetDiscreteVoxelShape(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:15 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ BitSetDiscreteVoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: storage, xMin, yMin, zMin. สร้างออบเจ็กต์: BitSet.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#fill(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:90 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ BitSetDiscreteVoxelShape
ทำงานยังไง
เรียกต่อ: fillUpdateBounds().
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#firstFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:100 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ firstFull ตาม implementation ของ BitSetDiscreteVoxelShape
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.xMin, this.yMin, this.zMin).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
BitSetDiscreteVoxelShape instance = ...;
Direction.Axis axis = ...;
int result = instance.firstFull(axis);
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#forAllBoxes(DiscreteVoxelShape,DiscreteVoxelShape.IntLineConsumer,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:158 - Modifiers:
protected static - Return:
void
คืออะไร
ดำเนินการ forAllBoxes ตาม implementation ของ BitSetDiscreteVoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isFullWide(), consume(), clearZStrip(), isZStripFull(), isXZRectangleFull(). สร้างออบเจ็กต์: BitSetDiscreteVoxelShape.
Parameters
DiscreteVoxelShape discreteVoxelShapeDiscreteVoxelShape.IntLineConsumer intLineConsumerboolean bl
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
DiscreteVoxelShape.IntLineConsumer intLineConsumer = ...;
@Override
protected void forAllBoxes(DiscreteVoxelShape discreteVoxelShape, DiscreteVoxelShape.IntLineConsumer intLineConsumer, boolean bl) {
super.forAllBoxes(discreteVoxelShape, intLineConsumer, bl);
}
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#getIndex(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:69 - Modifiers:
protected - Return:
int
คืออะไร
อ่านค่า Index
ทำงานยังไง
คืนค่า: (i * this.ySize + j) * this.zSize + k.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#isEmpty()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:95 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.storage.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#isFull(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:73 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full
ทำงานยังไง
เรียกต่อ: get(), getIndex(). คืนค่า: this.storage.get(this.getIndex(i, j, k)).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#isInterior(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:218 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Interior
ทำงานยังไง
เรียกต่อ: isFull().
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#lastFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:105 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ lastFull ตาม implementation ของ BitSetDiscreteVoxelShape
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.xMax, this.yMax, this.zMax).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
BitSetDiscreteVoxelShape instance = ...;
Direction.Axis axis = ...;
int result = instance.lastFull(axis);
net.minecraft.world.phys.shapes.BitSetDiscreteVoxelShape#withFilledBounds(int,int,int,int,int,int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BitSetDiscreteVoxelShape.java:23 - Modifiers:
public static - Return:
BitSetDiscreteVoxelShape
คืออะไร
ดำเนินการ withFilledBounds ตาม implementation ของ BitSetDiscreteVoxelShape
ทำงานยังไง
มีการวนลูป. เรียกต่อ: fillUpdateBounds(). สร้างออบเจ็กต์: BitSetDiscreteVoxelShape. คืนค่า: bitSetDiscreteVoxelShape.
Parameters
int iint jint kint lint mint nint oint pint q
ตัวอย่างใช้งาน
BitSetDiscreteVoxelShape result = BitSetDiscreteVoxelShape.withFilledBounds(0, 0, 0, 0, 0, 0, 0, 0, 0);
BooleanOp
- Full name:
net.minecraft.world.phys.shapes.BooleanOp - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/BooleanOp.java - Type:
interface - Modifiers:
public
net.minecraft.world.phys.shapes.BooleanOp#apply(boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/BooleanOp.java:21 - Modifiers: ``
- Return:
boolean
คืออะไร
นำไปใช้ apply
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
boolean blboolean bl2
ตัวอย่างใช้งาน
CollisionContext
- Full name:
net.minecraft.world.phys.shapes.CollisionContext - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/CollisionContext.java - Type:
interface - Modifiers:
public
net.minecraft.world.phys.shapes.CollisionContext#canStandOnFluid(FluidState,FluidState)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:35 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Stand On Fluid
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
FluidState fluidStateFluidState fluidState2
ตัวอย่างใช้งาน
CollisionContext instance = ...;
FluidState fluidState = ...;
FluidState fluidState2 = ...;
boolean result = instance.canStandOnFluid(fluidState, fluidState2);
net.minecraft.world.phys.shapes.CollisionContext#empty()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:12 - Modifiers:
static - Return:
CollisionContext
คืออะไร
ดำเนินการ empty ตาม implementation ของ CollisionContext
ทำงานยังไง
คืนค่า: EntityCollisionContext.EMPTY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CollisionContext#getCollisionShape(BlockState,CollisionGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:37 - Modifiers: ``
- Return:
VoxelShape
คืออะไร
อ่านค่า Collision Shape
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
BlockState blockStateCollisionGetter collisionGetterBlockPos blockPos
ตัวอย่างใช้งาน
CollisionContext instance = ...;
BlockState blockState = ...;
CollisionGetter collisionGetter = ...;
BlockPos blockPos = ...;
VoxelShape result = instance.getCollisionShape(blockState, collisionGetter, blockPos);
net.minecraft.world.phys.shapes.CollisionContext#isAbove(VoxelShape,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:31 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Above
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
VoxelShape voxelShapeBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
CollisionContext instance = ...;
VoxelShape voxelShape = ...;
BlockPos blockPos = ...;
boolean result = instance.isAbove(voxelShape, blockPos, true);
net.minecraft.world.phys.shapes.CollisionContext#isDescending()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:29 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Descending
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CollisionContext#isHoldingItem(Item)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:33 - Modifiers: ``
- Return:
boolean
คืออะไร
ตรวจสอบสถานะ Holding Item
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Item item
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CollisionContext#of(Entity)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:16 - Modifiers:
static - Return:
CollisionContext
คืออะไร
ดำเนินการ of ตาม implementation ของ CollisionContext
ทำงานยังไง
แยกกรณีด้วย switch. เรียกต่อ: useExperimentalMovement(), level(). สร้างออบเจ็กต์: MinecartCollisionContext, EntityCollisionContext.
Parameters
Entity entity
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CollisionContext#of(Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CollisionContext.java:25 - Modifiers:
static - Return:
CollisionContext
คืออะไร
ดำเนินการ of ตาม implementation ของ CollisionContext
ทำงานยังไง
สร้างออบเจ็กต์: EntityCollisionContext. คืนค่า: new EntityCollisionContext(entity, bl).
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
CubePointRange
- Full name:
net.minecraft.world.phys.shapes.CubePointRange - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/CubePointRange.java - Type:
class - Modifiers:
public - Extends:
AbstractDoubleList
net.minecraft.world.phys.shapes.CubePointRange#CubePointRange(int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubePointRange.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CubePointRange ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: parts. สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CubePointRange#getDouble(int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubePointRange.java:16 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Double
ทำงานยังไง
คืนค่า: (double)i / this.parts.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.CubePointRange#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubePointRange.java:21 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ CubePointRange
ทำงานยังไง
คืนค่า: this.parts + 1.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
CubeVoxelShape
- Full name:
net.minecraft.world.phys.shapes.CubeVoxelShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/CubeVoxelShape.java - Type:
class - Modifiers:
public final - Extends:
VoxelShape
net.minecraft.world.phys.shapes.CubeVoxelShape#CubeVoxelShape(DiscreteVoxelShape)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubeVoxelShape.java:8 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ CubeVoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DiscreteVoxelShape discreteVoxelShape
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
CubeVoxelShape instance = new CubeVoxelShape(discreteVoxelShape);
net.minecraft.world.phys.shapes.CubeVoxelShape#findIndex(Direction.Axis,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubeVoxelShape.java:17 - Modifiers:
protected - Return:
int
คืออะไร
ค้นหา Index
ทำงานยังไง
เรียกต่อ: getSize(), floor(), clamp(). คืนค่า: Mth.floor(Mth.clamp(d * i, -1.0, i)).
Parameters
Direction.Axis axisdouble d
ตัวอย่างใช้งาน
Direction.Axis axis = ...;
@Override
protected int findIndex(Direction.Axis axis, double d) {
return super.findIndex(axis, d);
}
net.minecraft.world.phys.shapes.CubeVoxelShape#getCoords(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/CubeVoxelShape.java:12 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า Coords
ทำงานยังไง
เรียกต่อ: getSize(). สร้างออบเจ็กต์: CubePointRange. คืนค่า: new CubePointRange(this.shape.getSize(axis)).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
CubeVoxelShape instance = ...;
Direction.Axis axis = ...;
DoubleList result = instance.getCoords(axis);
DiscreteCubeMerger
- Full name:
net.minecraft.world.phys.shapes.DiscreteCubeMerger - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/DiscreteCubeMerger.java - Type:
class - Modifiers:
public final - Implements:
IndexMerger
net.minecraft.world.phys.shapes.DiscreteCubeMerger#forMergedIndexes(IndexMerger.IndexConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteCubeMerger.java:18 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ forMergedIndexes ตาม implementation ของ DiscreteCubeMerger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), merge(). มีจุด return อย่างน้อย 2 จุด.
Parameters
IndexMerger.IndexConsumer indexConsumer
ตัวอย่างใช้งาน
DiscreteCubeMerger instance = ...;
IndexMerger.IndexConsumer indexConsumer = ...;
boolean result = instance.forMergedIndexes(indexConsumer);
net.minecraft.world.phys.shapes.DiscreteCubeMerger#getList()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteCubeMerger.java:36 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า List
ทำงานยังไง
คืนค่า: this.result.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteCubeMerger#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteCubeMerger.java:31 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ DiscreteCubeMerger
ทำงานยังไง
คืนค่า: this.result.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
DiscreteVoxelShape
- Full name:
net.minecraft.world.phys.shapes.DiscreteVoxelShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/DiscreteVoxelShape.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.phys.shapes.DiscreteVoxelShape#DiscreteVoxelShape(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:12 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ DiscreteVoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: xSize, ySize, zSize. สร้างออบเจ็กต์: IllegalArgumentException.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#fill(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:40 - Modifiers:
public abstract - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#firstFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:52 - Modifiers:
public abstract - Return:
int
คืออะไร
ดำเนินการ firstFull ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
Direction.Axis axis = ...;
int result = instance.firstFull(axis);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#firstFull(Direction.Axis,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:56 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ firstFull ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: getSize(), cycle(), between(), isFull(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Direction.Axis axisint iint j
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
Direction.Axis axis = ...;
int result = instance.firstFull(axis, 0, 0);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#forAllBoxes(DiscreteVoxelShape.IntLineConsumer,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:178 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forAllBoxes ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
DiscreteVoxelShape.IntLineConsumer intLineConsumerboolean bl
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
DiscreteVoxelShape.IntLineConsumer intLineConsumer = ...;
instance.forAllBoxes(intLineConsumer, true);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#forAllEdges(DiscreteVoxelShape.IntLineConsumer,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:118 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forAllEdges ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
เรียกต่อ: forAllAxisEdges().
Parameters
DiscreteVoxelShape.IntLineConsumer intLineConsumerboolean bl
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
DiscreteVoxelShape.IntLineConsumer intLineConsumer = ...;
instance.forAllEdges(intLineConsumer, true);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#forAllFaces(DiscreteVoxelShape.IntFaceConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:182 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forAllFaces ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
เรียกต่อ: forAllAxisFaces().
Parameters
DiscreteVoxelShape.IntFaceConsumer intFaceConsumer
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
DiscreteVoxelShape.IntFaceConsumer intFaceConsumer = ...;
instance.forAllFaces(intFaceConsumer);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#getSize(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:102 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า Size
ทำงานยังไง
เรียกต่อ: choose(). คืนค่า: axis.choose(this.xSize, this.ySize, this.zSize).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#getXSize()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:106 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า XSize
ทำงานยังไง
เรียกต่อ: getSize(). คืนค่า: this.getSize(Direction.Axis.X).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#getYSize()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:110 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า YSize
ทำงานยังไง
เรียกต่อ: getSize(). คืนค่า: this.getSize(Direction.Axis.Y).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#getZSize()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:114 - Modifiers:
public - Return:
int
คืออะไร
อ่านค่า ZSize
ทำงานยังไง
เรียกต่อ: getSize(). คืนค่า: this.getSize(Direction.Axis.Z).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#isEmpty()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:42 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: firstFull(), lastFull(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#isFull(AxisCycle,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:34 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full
ทำงานยังไง
เรียกต่อ: cycle(). คืนค่า: this.isFull(axisCycle.cycle(i, j, k, Direction.Axis.X), axisCycle.cycle(i, j, k, Direction.Axis.Y), axisCycle.cycle(i, j, k, Direction.Axis.Z)).
Parameters
AxisCycle axisCycleint iint jint k
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
AxisCycle axisCycle = ...;
boolean result = instance.isFull(axisCycle, 0, 0, 0);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#isFull(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:38 - Modifiers:
public abstract - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#isFullWide(AxisCycle,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full Wide
ทำงานยังไง
เรียกต่อ: cycle(). คืนค่า: this.isFullWide(axisCycle.cycle(i, j, k, Direction.Axis.X), axisCycle.cycle(i, j, k, Direction.Axis.Y), axisCycle.cycle(i, j, k, Direction.Axis.Z)).
Parameters
AxisCycle axisCycleint iint jint k
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
AxisCycle axisCycle = ...;
boolean result = instance.isFullWide(axisCycle, 0, 0, 0);
net.minecraft.world.phys.shapes.DiscreteVoxelShape#isFullWide(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full Wide
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isFull(). มีจุด return อย่างน้อย 2 จุด.
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#lastFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:54 - Modifiers:
public abstract - Return:
int
คืออะไร
ดำเนินการ lastFull ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.DiscreteVoxelShape#lastFull(Direction.Axis,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:79 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ lastFull ตาม implementation ของ DiscreteVoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: cycle(), getSize(), between(), isFull(). มีจุด return อย่างน้อย 4 จุด.
Parameters
Direction.Axis axisint iint j
ตัวอย่างใช้งาน
DiscreteVoxelShape instance = ...;
Direction.Axis axis = ...;
int result = instance.lastFull(axis, 0, 0);
DiscreteVoxelShape$IntFaceConsumer
- Full name:
net.minecraft.world.phys.shapes.DiscreteVoxelShape$IntFaceConsumer - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/DiscreteVoxelShape.java - Type:
interface - Modifiers:
public
net.minecraft.world.phys.shapes.DiscreteVoxelShape$IntFaceConsumer#consume(Direction,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:225 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ consume ตาม implementation ของ DiscreteVoxelShape$IntFaceConsumer
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
Direction directionint iint jint k
ตัวอย่างใช้งาน
DiscreteVoxelShape.IntFaceConsumer instance = ...;
Direction direction = ...;
instance.consume(direction, 0, 0, 0);
DiscreteVoxelShape$IntLineConsumer
- Full name:
net.minecraft.world.phys.shapes.DiscreteVoxelShape$IntLineConsumer - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/DiscreteVoxelShape.java - Type:
interface - Modifiers:
public
net.minecraft.world.phys.shapes.DiscreteVoxelShape$IntLineConsumer#consume(int,int,int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/DiscreteVoxelShape.java:229 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ consume ตาม implementation ของ DiscreteVoxelShape$IntLineConsumer
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
int iint jint kint lint mint n
ตัวอย่างใช้งาน
EntityCollisionContext
- Full name:
net.minecraft.world.phys.shapes.EntityCollisionContext - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/EntityCollisionContext.java - Type:
class - Modifiers:
public - Implements:
CollisionContext
net.minecraft.world.phys.shapes.EntityCollisionContext#canStandOnFluid(FluidState,FluidState)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:53 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบว่าสามารถ Stand On Fluid
ทำงานยังไง
เรียกต่อ: test(), getType(), isSame(). คืนค่า: this.canStandOnFluid.test(fluidState2) && !fluidState.getType().isSame(fluidState2.getType()).
Parameters
FluidState fluidStateFluidState fluidState2
ตัวอย่างใช้งาน
EntityCollisionContext instance = ...;
FluidState fluidState = ...;
FluidState fluidState2 = ...;
boolean result = instance.canStandOnFluid(fluidState, fluidState2);
net.minecraft.world.phys.shapes.EntityCollisionContext#EntityCollisionContext(boolean,double,ItemStack,Predicate<FluidState>,Entity)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:29 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityCollisionContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: descending, entityBottom, heldItem, canStandOnFluid, entity.
Parameters
boolean bldouble dItemStack itemStackPredicate<FluidState> predicateEntity entity
ตัวอย่างใช้งาน
ItemStack itemStack = ...;
Predicate<FluidState> predicate = ...;
Entity entity = ...;
EntityCollisionContext instance = new EntityCollisionContext(true, 0.0D, itemStack, predicate, entity);
net.minecraft.world.phys.shapes.EntityCollisionContext#EntityCollisionContext(Entity,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:37 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ EntityCollisionContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: isDescending(), getY(), getMainHandItem().
Parameters
Entity entityboolean bl
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.EntityCollisionContext#getCollisionShape(BlockState,CollisionGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:58 - Modifiers:
public - Return:
VoxelShape
คืออะไร
อ่านค่า Collision Shape
ทำงานยังไง
คืนค่า: blockState.getCollisionShape(collisionGetter, blockPos, this).
Parameters
BlockState blockStateCollisionGetter collisionGetterBlockPos blockPos
ตัวอย่างใช้งาน
EntityCollisionContext instance = ...;
BlockState blockState = ...;
CollisionGetter collisionGetter = ...;
BlockPos blockPos = ...;
VoxelShape result = instance.getCollisionShape(blockState, collisionGetter, blockPos);
net.minecraft.world.phys.shapes.EntityCollisionContext#getEntity()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:73 - Modifiers:
public - Return:
Entity
คืออะไร
อ่านค่า Entity
ทำงานยังไง
คืนค่า: this.entity.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.EntityCollisionContext#isAbove(VoxelShape,BlockPos,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:68 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Above
ทำงานยังไง
เรียกต่อ: getY(), max(). คืนค่า: this.entityBottom > blockPos.getY() + voxelShape.max(Direction.Axis.Y) - 1.0E-5F.
Parameters
VoxelShape voxelShapeBlockPos blockPosboolean bl
ตัวอย่างใช้งาน
EntityCollisionContext instance = ...;
VoxelShape voxelShape = ...;
BlockPos blockPos = ...;
boolean result = instance.isAbove(voxelShape, blockPos, true);
net.minecraft.world.phys.shapes.EntityCollisionContext#isDescending()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:63 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Descending
ทำงานยังไง
คืนค่า: this.descending.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.EntityCollisionContext#isHoldingItem(Item)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/EntityCollisionContext.java:48 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Holding Item
ทำงานยังไง
เรียกต่อ: is(). คืนค่า: this.heldItem.is(item).
Parameters
Item item
ตัวอย่างใช้งาน
EntityCollisionContext instance = ...;
Item item = ...;
boolean result = instance.isHoldingItem(item);
IdenticalMerger
- Full name:
net.minecraft.world.phys.shapes.IdenticalMerger - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/IdenticalMerger.java - Type:
class - Modifiers:
public - Implements:
IndexMerger
net.minecraft.world.phys.shapes.IdenticalMerger#forMergedIndexes(IndexMerger.IndexConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IdenticalMerger.java:12 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ forMergedIndexes ตาม implementation ของ IdenticalMerger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: size(), merge(). มีจุด return อย่างน้อย 2 จุด.
Parameters
IndexMerger.IndexConsumer indexConsumer
ตัวอย่างใช้งาน
IdenticalMerger instance = ...;
IndexMerger.IndexConsumer indexConsumer = ...;
boolean result = instance.forMergedIndexes(indexConsumer);
net.minecraft.world.phys.shapes.IdenticalMerger#getList()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IdenticalMerger.java:30 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า List
ทำงานยังไง
คืนค่า: this.coords.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.IdenticalMerger#IdenticalMerger(DoubleList)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IdenticalMerger.java:8 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IdenticalMerger ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: coords.
Parameters
DoubleList doubleList
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.IdenticalMerger#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IdenticalMerger.java:25 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ IdenticalMerger
ทำงานยังไง
คืนค่า: this.coords.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
IndirectMerger
- Full name:
net.minecraft.world.phys.shapes.IndirectMerger - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/IndirectMerger.java - Type:
class - Modifiers:
public - Implements:
IndexMerger
net.minecraft.world.phys.shapes.IndirectMerger#forMergedIndexes(IndexMerger.IndexConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IndirectMerger.java:65 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ forMergedIndexes ตาม implementation ของ IndirectMerger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: merge(). มีจุด return อย่างน้อย 2 จุด.
Parameters
IndexMerger.IndexConsumer indexConsumer
ตัวอย่างใช้งาน
IndirectMerger instance = ...;
IndexMerger.IndexConsumer indexConsumer = ...;
boolean result = instance.forMergedIndexes(indexConsumer);
net.minecraft.world.phys.shapes.IndirectMerger#getList()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IndirectMerger.java:83 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า List
ทำงานยังไง
เรียกต่อ: wrap(). คืนค่า: this.resultLength <= 1 ? EMPTY : DoubleArrayList.wrap(this.result, this.resultLength).
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.IndirectMerger#IndirectMerger(DoubleList,DoubleList,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IndirectMerger.java:14 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ IndirectMerger ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. แก้ state: result, firstIndices, secondIndices, resultLength. เรียกต่อ: size(), max(), getDouble().
Parameters
DoubleList doubleListDoubleList doubleList2boolean blboolean bl2
ตัวอย่างใช้งาน
DoubleList doubleList = ...;
DoubleList doubleList2 = ...;
IndirectMerger instance = new IndirectMerger(doubleList, doubleList2, true, true);
net.minecraft.world.phys.shapes.IndirectMerger#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/IndirectMerger.java:78 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ IndirectMerger
ทำงานยังไง
คืนค่า: this.resultLength.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
MinecartCollisionContext
- Full name:
net.minecraft.world.phys.shapes.MinecartCollisionContext - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/MinecartCollisionContext.java - Type:
class - Modifiers:
public - Extends:
EntityCollisionContext
net.minecraft.world.phys.shapes.MinecartCollisionContext#getCollisionShape(BlockState,CollisionGetter,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/MinecartCollisionContext.java:41 - Modifiers:
public - Return:
VoxelShape
คืออะไร
อ่านค่า Collision Shape
ทำงานยังไง
เรียกต่อ: equals(), empty(). คืนค่า: !blockPos.equals(this.ingoreBelow) && !blockPos.equals(this.slopeIgnore) ? super.getCollisionShape(blockState, collisionGetter, blockPos) : Shapes.empty().
Parameters
BlockState blockStateCollisionGetter collisionGetterBlockPos blockPos
ตัวอย่างใช้งาน
MinecartCollisionContext instance = ...;
BlockState blockState = ...;
CollisionGetter collisionGetter = ...;
BlockPos blockPos = ...;
VoxelShape result = instance.getCollisionShape(blockState, collisionGetter, blockPos);
net.minecraft.world.phys.shapes.MinecartCollisionContext#MinecartCollisionContext(AbstractMinecart,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/MinecartCollisionContext.java:17 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ MinecartCollisionContext ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
เรียกต่อ: setupContext().
Parameters
AbstractMinecart abstractMinecartboolean bl
ตัวอย่างใช้งาน
AbstractMinecart abstractMinecart = ...;
MinecartCollisionContext instance = new MinecartCollisionContext(abstractMinecart, true);
NonOverlappingMerger
- Full name:
net.minecraft.world.phys.shapes.NonOverlappingMerger - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/NonOverlappingMerger.java - Type:
class - Modifiers:
public - Extends:
AbstractDoubleList - Implements:
IndexMerger
net.minecraft.world.phys.shapes.NonOverlappingMerger#forMergedIndexes(IndexMerger.IndexConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/NonOverlappingMerger.java:22 - Modifiers:
public - Return:
boolean
คืออะไร
ดำเนินการ forMergedIndexes ตาม implementation ของ NonOverlappingMerger
ทำงานยังไง
เรียกต่อ: forNonSwappedIndexes(), merge(). คืนค่า: this.swap ? this.forNonSwappedIndexes((i, j, k) -> indexConsumer.merge(j, i, k)) : this.forNonSwappedIndexes(indexConsumer).
Parameters
IndexMerger.IndexConsumer indexConsumer
ตัวอย่างใช้งาน
NonOverlappingMerger instance = ...;
IndexMerger.IndexConsumer indexConsumer = ...;
boolean result = instance.forMergedIndexes(indexConsumer);
net.minecraft.world.phys.shapes.NonOverlappingMerger#getDouble(int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/NonOverlappingMerger.java:47 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Double
ทำงานยังไง
เรียกต่อ: size(). คืนค่า: i < this.lower.size() ? this.lower.getDouble(i) : this.upper.getDouble(i - this.lower.size()).
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.NonOverlappingMerger#getList()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/NonOverlappingMerger.java:52 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า List
ทำงานยังไง
คืนค่า: this.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.NonOverlappingMerger#NonOverlappingMerger(DoubleList,DoubleList,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/NonOverlappingMerger.java:11 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ NonOverlappingMerger ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: lower, upper, swap.
Parameters
DoubleList doubleListDoubleList doubleList2boolean bl
ตัวอย่างใช้งาน
DoubleList doubleList = ...;
DoubleList doubleList2 = ...;
NonOverlappingMerger instance = new NonOverlappingMerger(doubleList, doubleList2, true);
net.minecraft.world.phys.shapes.NonOverlappingMerger#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/NonOverlappingMerger.java:17 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ NonOverlappingMerger
ทำงานยังไง
คืนค่า: this.lower.size() + this.upper.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
OffsetDoubleList
- Full name:
net.minecraft.world.phys.shapes.OffsetDoubleList - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/OffsetDoubleList.java - Type:
class - Modifiers:
public - Extends:
AbstractDoubleList
net.minecraft.world.phys.shapes.OffsetDoubleList#getDouble(int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/OffsetDoubleList.java:15 - Modifiers:
public - Return:
double
คืออะไร
อ่านค่า Double
ทำงานยังไง
คืนค่า: this.delegate.getDouble(i) + this.offset.
Parameters
int i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.OffsetDoubleList#OffsetDoubleList(DoubleList,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/OffsetDoubleList.java:10 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ OffsetDoubleList ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: delegate, offset.
Parameters
DoubleList doubleListdouble d
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.OffsetDoubleList#size()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/OffsetDoubleList.java:20 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ size ตาม implementation ของ OffsetDoubleList
ทำงานยังไง
คืนค่า: this.delegate.size().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
Shapes
- Full name:
net.minecraft.world.phys.shapes.Shapes - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/Shapes.java - Type:
class - Modifiers:
public final
net.minecraft.world.phys.shapes.Shapes#block()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:34 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ block ตาม implementation ของ Shapes
ทำงานยังไง
คืนค่า: BLOCK.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#blockOccudes(VoxelShape,VoxelShape,Direction)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:212 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ blockOccudes ตาม implementation ของ Shapes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: block(), isEmpty(), getAxis(), getAxisDirection(), fuzzyEquals(), max(), min(), joinIsNotEmpty(). สร้างออบเจ็กต์: SliceShape. มีจุด return อย่างน้อย 2 จุด.
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2Direction direction
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
Direction direction = ...;
boolean result = Shapes.blockOccudes(voxelShape, voxelShape2, direction);
net.minecraft.world.phys.shapes.Shapes#box(double,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:38 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ box ตาม implementation ของ Shapes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: create(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: create(d, e, f, g, h, i).
Parameters
double ddouble edouble fdouble gdouble hdouble i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#collide(Direction.Axis,AABB,Iterable<VoxelShape>,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:200 - Modifiers:
public static - Return:
double
คืออะไร
ดำเนินการ collide ตาม implementation ของ Shapes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: abs(). มีจุด return อย่างน้อย 2 จุด.
Parameters
Direction.Axis axisAABB aABBIterable<VoxelShape> iterabledouble d
ตัวอย่างใช้งาน
Direction.Axis axis = ...;
AABB aABB = ...;
Iterable<VoxelShape> iterable = ...;
double result = Shapes.collide(axis, aABB, iterable, 0.0D);
net.minecraft.world.phys.shapes.Shapes#create(AABB)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:73 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
สร้าง create
ทำงานยังไง
คืนค่า: create(aABB.minX, aABB.minY, aABB.minZ, aABB.maxX, aABB.maxY, aABB.maxZ).
Parameters
AABB aABB
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#create(double,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:46 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
สร้าง create
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: findBits(), wrap(), block(), withFilledBounds(), round(), empty(). สร้างออบเจ็กต์: ArrayVoxelShape, CubeVoxelShape. มีจุด return อย่างน้อย 3 จุด.
Parameters
double ddouble edouble fdouble gdouble hdouble i
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#createIndexMerger(int,DoubleList,DoubleList,boolean,boolean)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:265 - Modifiers:
protected static - Return:
IndexMerger
คืออะไร
สร้าง Index Merger
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: size(), lcm(), getDouble(), equals(). สร้างออบเจ็กต์: DiscreteCubeMerger, NonOverlappingMerger, IdenticalMerger, IndirectMerger. มีจุด return อย่างน้อย 4 จุด.
Parameters
int iDoubleList doubleListDoubleList doubleList2boolean blboolean bl2
ตัวอย่างใช้งาน
DoubleList doubleList = ...;
DoubleList doubleList2 = ...;
@Override
protected IndexMerger createIndexMerger(int i, DoubleList doubleList, DoubleList doubleList2, boolean bl, boolean bl2) {
return super.createIndexMerger(i, doubleList, doubleList2, bl, bl2);
}
net.minecraft.world.phys.shapes.Shapes#empty()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:30 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ empty ตาม implementation ของ Shapes
ทำงานยังไง
คืนค่า: EMPTY.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#faceShapeOccludes(VoxelShape,VoxelShape)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:255 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ faceShapeOccludes ตาม implementation ของ Shapes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: block(), isEmpty(), joinIsNotEmpty(), joinUnoptimized(). คืนค่า: true.
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
boolean result = Shapes.faceShapeOccludes(voxelShape, voxelShape2);
net.minecraft.world.phys.shapes.Shapes#findBits(double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:77 - Modifiers:
protected static - Return:
int
คืออะไร
ค้นหา Bits
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: abs(), round(). มีจุด return อย่างน้อย 3 จุด.
Parameters
double ddouble e
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#join(VoxelShape,VoxelShape,BooleanOp)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:109 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
รวม/เข้าร่วม join
ทำงานยังไง
เรียกต่อ: joinUnoptimized(), optimize(). คืนค่า: joinUnoptimized(voxelShape, voxelShape2, booleanOp).optimize().
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2BooleanOp booleanOp
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
BooleanOp booleanOp = ...;
VoxelShape result = Shapes.join(voxelShape, voxelShape2, booleanOp);
net.minecraft.world.phys.shapes.Shapes#joinIsNotEmpty(VoxelShape,VoxelShape,BooleanOp)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:145 - Modifiers:
public static - Return:
boolean
คืออะไร
รวม/เข้าร่วม Is Not Empty
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: apply(), pauseInIde(), isEmpty(), max(), min(), createIndexMerger(), getCoords(), size(). สร้างออบเจ็กต์: IllegalArgumentException. มีจุด return อย่างน้อย 5 จุด.
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2BooleanOp booleanOp
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
BooleanOp booleanOp = ...;
boolean result = Shapes.joinIsNotEmpty(voxelShape, voxelShape2, booleanOp);
net.minecraft.world.phys.shapes.Shapes#joinUnoptimized(VoxelShape,VoxelShape,BooleanOp)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:113 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
รวม/เข้าร่วม Unoptimized
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: apply(), pauseInIde(), empty(), isEmpty(), createIndexMerger(), getCoords(), size(), join(). สร้างออบเจ็กต์: IllegalArgumentException, CubeVoxelShape, ArrayVoxelShape. มีจุด return อย่างน้อย 3 จุด.
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2BooleanOp booleanOp
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
BooleanOp booleanOp = ...;
VoxelShape result = Shapes.joinUnoptimized(voxelShape, voxelShape2, booleanOp);
net.minecraft.world.phys.shapes.Shapes#lcm(int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:97 - Modifiers:
protected static - Return:
long
คืออะไร
ดำเนินการ lcm ตาม implementation ของ Shapes
ทำงานยังไง
เรียกต่อ: gcd(). คืนค่า: (long)i * (j / IntMath.gcd(i, j)).
Parameters
int iint j
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.Shapes#mergedFaceOccludes(VoxelShape,VoxelShape,Direction)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:231 - Modifiers:
public static - Return:
boolean
คืออะไร
ดำเนินการ mergedFaceOccludes ตาม implementation ของ Shapes
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: block(), getAxis(), getAxisDirection(), fuzzyEquals(), max(), empty(), min(), joinIsNotEmpty(). สร้างออบเจ็กต์: SliceShape. คืนค่า: true.
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2Direction direction
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
Direction direction = ...;
boolean result = Shapes.mergedFaceOccludes(voxelShape, voxelShape2, direction);
net.minecraft.world.phys.shapes.Shapes#or(VoxelShape,VoxelShape)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:101 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ or ตาม implementation ของ Shapes
ทำงานยังไง
เรียกต่อ: join(). คืนค่า: join(voxelShape, voxelShape2, BooleanOp.OR).
Parameters
VoxelShape voxelShapeVoxelShape voxelShape2
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape voxelShape2 = ...;
VoxelShape result = Shapes.or(voxelShape, voxelShape2);
net.minecraft.world.phys.shapes.Shapes#or(VoxelShape,VoxelShape[])
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:105 - Modifiers:
public static - Return:
VoxelShape
คืออะไร
ดำเนินการ or ตาม implementation ของ Shapes
ทำงานยังไง
เรียกต่อ: stream(), reduce(). คืนค่า: Arrays.stream(voxelShapes).reduce(voxelShape, Shapes::or).
Parameters
VoxelShape voxelShapeVoxelShape[] voxelShapes
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
VoxelShape[] voxelShapes = ...;
VoxelShape result = Shapes.or(voxelShape, voxelShapes);
Shapes$DoubleLineConsumer
- Full name:
net.minecraft.world.phys.shapes.Shapes$DoubleLineConsumer - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/Shapes.java - Type:
interface - Modifiers:
public
net.minecraft.world.phys.shapes.Shapes$DoubleLineConsumer#consume(double,double,double,double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/Shapes.java:286 - Modifiers: ``
- Return:
void
คืออะไร
ดำเนินการ consume ตาม implementation ของ Shapes$DoubleLineConsumer
ทำงานยังไง
ไม่มี body ใน source declaration นี้
Parameters
double ddouble edouble fdouble gdouble hdouble i
ตัวอย่างใช้งาน
SliceShape
- Full name:
net.minecraft.world.phys.shapes.SliceShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/SliceShape.java - Type:
class - Modifiers:
public - Extends:
VoxelShape
net.minecraft.world.phys.shapes.SliceShape#getCoords(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SliceShape.java:29 - Modifiers:
public - Return:
DoubleList
คืออะไร
อ่านค่า Coords
ทำงานยังไง
คืนค่า: axis == this.axis ? SLICE_COORDS : this.delegate.getCoords(axis).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.SliceShape#SliceShape(VoxelShape,Direction.Axis,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SliceShape.java:11 - Modifiers:
public - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SliceShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: delegate, axis. เรียกต่อ: makeSlice().
Parameters
VoxelShape voxelShapeDirection.Axis axisint i
ตัวอย่างใช้งาน
VoxelShape voxelShape = ...;
Direction.Axis axis = ...;
SliceShape instance = new SliceShape(voxelShape, axis, 0);
SubShape
- Full name:
net.minecraft.world.phys.shapes.SubShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/SubShape.java - Type:
class - Modifiers:
public final - Extends:
DiscreteVoxelShape
net.minecraft.world.phys.shapes.SubShape#fill(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SubShape.java:31 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ fill ตาม implementation ของ SubShape
ทำงานยังไง
ทำงานตาม body โดยตรง (ประมาณ 1 statement).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.SubShape#firstFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SubShape.java:36 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ firstFull ตาม implementation ของ SubShape
ทำงานยังไง
เรียกต่อ: clampToShape(). คืนค่า: this.clampToShape(axis, this.parent.firstFull(axis)).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.SubShape#isFull(int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SubShape.java:26 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Full
ทำงานยังไง
คืนค่า: this.parent.isFull(this.startX + i, this.startY + j, this.startZ + k).
Parameters
int iint jint k
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.SubShape#lastFull(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SubShape.java:41 - Modifiers:
public - Return:
int
คืออะไร
ดำเนินการ lastFull ตาม implementation ของ SubShape
ทำงานยังไง
เรียกต่อ: clampToShape(). คืนค่า: this.clampToShape(axis, this.parent.lastFull(axis)).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.SubShape#SubShape(DiscreteVoxelShape,int,int,int,int,int,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/SubShape.java:15 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ SubShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: parent, startX, startY, startZ, endX, endY.
Parameters
DiscreteVoxelShape discreteVoxelShapeint iint jint kint lint mint n
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
SubShape instance = new SubShape(discreteVoxelShape, 0, 0, 0, 0, 0, 0);
VoxelShape
- Full name:
net.minecraft.world.phys.shapes.VoxelShape - Package:
net.minecraft.world.phys.shapes - Source:
common—net/minecraft/world/phys/shapes/VoxelShape.java - Type:
class - Modifiers:
public abstract
net.minecraft.world.phys.shapes.VoxelShape#bounds()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:37 - Modifiers:
public - Return:
AABB
คืออะไร
ดำเนินการ bounds ตาม implementation ของ VoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), pauseInIde(), min(), max(). สร้างออบเจ็กต์: UnsupportedOperationException, AABB.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#clip(Vec3,Vec3,BlockPos)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:152 - Modifiers:
public - Return:
BlockHitResult
คืออะไร
ดำเนินการ clip ตาม implementation ของ VoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), subtract(), lengthSqr(), add(), scale(), isFullWide(), findIndex(), getX(). สร้างออบเจ็กต์: BlockHitResult. มีจุด return อย่างน้อย 2 จุด.
Parameters
Vec3 vec3Vec3 vec32BlockPos blockPos
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Vec3 vec3 = ...;
Vec3 vec32 = ...;
BlockPos blockPos = ...;
BlockHitResult result = instance.clip(vec3, vec32, blockPos);
net.minecraft.world.phys.shapes.VoxelShape#closestPointTo(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:174 - Modifiers:
public - Return:
Optional<Vec3>
คืออะไร
ดำเนินการ closestPointTo ตาม implementation ของ VoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. เรียกต่อ: isEmpty(), empty(), forAllBoxes(), clamp(), x(), y(), z(), distanceToSqr(). สร้างออบเจ็กต์: Vec3. มีจุด return อย่างน้อย 2 จุด.
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#collide(Direction.Axis,AABB,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:241 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ collide ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: collideX(), between(). คืนค่า: this.collideX(AxisCycle.between(axis, Direction.Axis.X), aABB, d).
Parameters
Direction.Axis axisAABB aABBdouble d
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Direction.Axis axis = ...;
AABB aABB = ...;
double result = instance.collide(axis, aABB, 0.0D);
net.minecraft.world.phys.shapes.VoxelShape#collideX(AxisCycle,AABB,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:245 - Modifiers:
protected - Return:
double
คืออะไร
ดำเนินการ collideX ตาม implementation ของ VoxelShape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isEmpty(), abs(), inverse(), cycle(), max(), min(), findIndex(), getSize(). มีจุด return อย่างน้อย 5 จุด.
Parameters
AxisCycle axisCycleAABB aABBdouble d
ตัวอย่างใช้งาน
AxisCycle axisCycle = ...;
AABB aABB = ...;
@Override
protected double collideX(AxisCycle axisCycle, AABB aABB, double d) {
return super.collideX(axisCycle, aABB, d);
}
net.minecraft.world.phys.shapes.VoxelShape#findIndex(Direction.Axis,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:148 - Modifiers:
protected - Return:
int
คืออะไร
ค้นหา Index
ทำงานยังไง
เรียกต่อ: binarySearch(), getSize(), get(). คืนค่า: Mth.binarySearch(0, this.shape.getSize(axis) + 1, i -> d < this.get(axis, i)) - 1.
Parameters
Direction.Axis axisdouble d
ตัวอย่างใช้งาน
Direction.Axis axis = ...;
@Override
protected int findIndex(Direction.Axis axis, double d) {
return super.findIndex(axis, d);
}
net.minecraft.world.phys.shapes.VoxelShape#forAllBoxes(Shapes.DoubleLineConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:111 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forAllBoxes ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: getCoords(), consume(), getDouble().
Parameters
Shapes.DoubleLineConsumer doubleLineConsumer
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Shapes.DoubleLineConsumer doubleLineConsumer = ...;
instance.forAllBoxes(doubleLineConsumer);
net.minecraft.world.phys.shapes.VoxelShape#forAllEdges(Shapes.DoubleLineConsumer)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:96 - Modifiers:
public - Return:
void
คืออะไร
ดำเนินการ forAllEdges ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: consume(), get().
Parameters
Shapes.DoubleLineConsumer doubleLineConsumer
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Shapes.DoubleLineConsumer doubleLineConsumer = ...;
instance.forAllEdges(doubleLineConsumer);
net.minecraft.world.phys.shapes.VoxelShape#get(Direction.Axis,int)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:65 - Modifiers:
protected - Return:
double
คืออะไร
อ่านค่า get
ทำงานยังไง
เรียกต่อ: getCoords(), getDouble(). คืนค่า: this.getCoords(axis).getDouble(i).
Parameters
Direction.Axis axisint i
ตัวอย่างใช้งาน
Direction.Axis axis = ...;
@Override
protected double get(Direction.Axis axis, int i) {
return super.get(axis, i);
}
net.minecraft.world.phys.shapes.VoxelShape#getCoords(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:69 - Modifiers:
public abstract - Return:
DoubleList
คืออะไร
อ่านค่า Coords
ทำงานยังไง
ไม่มี implementation ใน declaration นี้; คลาสลูก/implementation เป็นผู้กำหนดพฤติกรรมจริง
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#getFaceShape(Direction)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:191 - Modifiers:
public - Return:
VoxelShape
คืออะไร
อ่านค่า Face Shape
ทำงานยังไง
ตรวจเงื่อนไขด้วย if. แก้ state: faces. เรียกต่อ: isEmpty(), block(), ordinal(), calculateFace(). มีจุด return อย่างน้อย 3 จุด.
Parameters
Direction direction
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Direction direction = ...;
VoxelShape result = instance.getFaceShape(direction);
net.minecraft.world.phys.shapes.VoxelShape#isCubeLike()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:226 - Modifiers:
protected - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Cube Like
ทำงานยังไง
ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: isCubeLikeAlong(). มีจุด return อย่างน้อย 2 จุด.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#isEmpty()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:71 - Modifiers:
public - Return:
boolean
คืออะไร
ตรวจสอบสถานะ Empty
ทำงานยังไง
คืนค่า: this.shape.isEmpty().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#max(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:32 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ max ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: lastFull(), get(). คืนค่า: i <= 0 ? Double.NEGATIVE_INFINITY : this.get(axis, i).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#max(Direction.Axis,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:139 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ max ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: cycle(), findIndex(), lastFull(), get(). คืนค่า: k <= 0 ? Double.NEGATIVE_INFINITY : this.get(axis, k).
Parameters
Direction.Axis axisdouble ddouble e
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Direction.Axis axis = ...;
double result = instance.max(axis, 0.0D, 0.0D);
net.minecraft.world.phys.shapes.VoxelShape#min(Direction.Axis)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:27 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ min ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: firstFull(), getSize(), get(). คืนค่า: i >= this.shape.getSize(axis) ? Double.POSITIVE_INFINITY : this.get(axis, i).
Parameters
Direction.Axis axis
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#min(Direction.Axis,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:130 - Modifiers:
public - Return:
double
คืออะไร
ดำเนินการ min ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: cycle(), findIndex(), firstFull(), getSize(), get(). คืนค่า: k >= this.shape.getSize(axis) ? Double.POSITIVE_INFINITY : this.get(axis, k).
Parameters
Direction.Axis axisdouble ddouble e
ตัวอย่างใช้งาน
VoxelShape instance = ...;
Direction.Axis axis = ...;
double result = instance.min(axis, 0.0D, 0.0D);
net.minecraft.world.phys.shapes.VoxelShape#move(double,double,double)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:79 - Modifiers:
public - Return:
VoxelShape
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
เรียกต่อ: isEmpty(), empty(), getCoords(). สร้างออบเจ็กต์: ArrayVoxelShape, OffsetDoubleList.
Parameters
double ddouble edouble f
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#move(Vec3)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:75 - Modifiers:
public - Return:
VoxelShape
คืออะไร
เคลื่อนที่ move
ทำงานยังไง
คืนค่า: this.move(vec3.x, vec3.y, vec3.z).
Parameters
Vec3 vec3
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#optimize()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:90 - Modifiers:
public - Return:
VoxelShape
คืออะไร
ดำเนินการ optimize ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: empty(), forAllBoxes(), joinUnoptimized(), box(). คืนค่า: voxelShapes[0].
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#singleEncompassing()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:52 - Modifiers:
public - Return:
VoxelShape
คืออะไร
ดำเนินการ singleEncompassing ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: isEmpty(), empty(), box(), min(), max().
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#toAabbs()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:124 - Modifiers:
public - Return:
List<AABB>
คืออะไร
ดำเนินการ toAabbs ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: newArrayList(), forAllBoxes(), add(). สร้างออบเจ็กต์: AABB. คืนค่า: list.
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#toString()
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:302 - Modifiers:
public - Return:
String
คืออะไร
ดำเนินการ toString ตาม implementation ของ VoxelShape
ทำงานยังไง
เรียกต่อ: isEmpty(), bounds(). คืนค่า: this.isEmpty() ? "EMPTY" : "VoxelShape[" + this.bounds() + "]".
Parameters
- ไม่มี
ตัวอย่างใช้งาน
net.minecraft.world.phys.shapes.VoxelShape#VoxelShape(DiscreteVoxelShape)
- Origin:
common - Source:
net/minecraft/world/phys/shapes/VoxelShape.java:23 - Modifiers:
protected - Kind: constructor
คืออะไร
สร้างออบเจ็กต์ VoxelShape ด้วยพารามิเตอร์ที่ระบุ
ทำงานยังไง
แก้ state: shape.
Parameters
DiscreteVoxelShape discreteVoxelShape
ตัวอย่างใช้งาน
DiscreteVoxelShape discreteVoxelShape = ...;
VoxelShape instance = new VoxelShape(discreteVoxelShape);