Skip to content

Package com.mojang.blaze3d.vertex

Part 1/1


BufferBuilder

  • Full name: com.mojang.blaze3d.vertex.BufferBuilder
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/BufferBuilder.java
  • Type: class
  • Modifiers: public
  • Implements: VertexConsumer

com.mojang.blaze3d.vertex.BufferBuilder#addVertex(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:142
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

แก้ state: elementsToFill. เรียกต่อ: beginVertex(), id(), memPutFloat(). คืนค่า: this.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.addVertex(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.BufferBuilder#addVertex(float,float,float,int,float,float,int,int,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:242
  • Modifiers: public
  • Return: void

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginVertex(), memPutFloat(), putRgba(), putPackedUv(), memPutByte(), normalIntValue().

Parameters

  • float f
  • float g
  • float h
  • int i
  • float j
  • float k
  • int l
  • int m
  • float n
  • float o
  • float p

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
instance.addVertex(0.0F, 0.0F, 0.0F, 0, 0.0F, 0.0F, 0, 0, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.BufferBuilder#BufferBuilder(ByteBufferBuilder,VertexFormat.Mode,VertexFormat)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:30
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ BufferBuilder ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: buffer, mode, format, vertexSize, initialElementsToFill, offsetsByElement. เรียกต่อ: contains(), getVertexSize(), getElementsMask(), mask(), getOffsetsByElement(). สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • ByteBufferBuilder byteBufferBuilder
  • VertexFormat.Mode mode
  • VertexFormat vertexFormat

ตัวอย่างใช้งาน

ByteBufferBuilder byteBufferBuilder = ...;
VertexFormat.Mode mode = ...;
VertexFormat vertexFormat = ...;
BufferBuilder instance = new BufferBuilder(byteBufferBuilder, mode, vertexFormat);

com.mojang.blaze3d.vertex.BufferBuilder#build()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:47
  • Modifiers: public
  • Return: MeshData

คืออะไร

สร้าง build

ทำงานยังไง

แก้ state: building, vertexPointer. เรียกต่อ: ensureBuilding(), endLastVertex(), storeMesh(). คืนค่า: meshData.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
MeshData result = instance.build();

com.mojang.blaze3d.vertex.BufferBuilder#buildOrThrow()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:57
  • Modifiers: public
  • Return: MeshData

คืออะไร

สร้าง Or Throw

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: build(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: meshData.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
MeshData result = instance.buildOrThrow();

com.mojang.blaze3d.vertex.BufferBuilder#setColor(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:165
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), putRgba(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setColor(0);

com.mojang.blaze3d.vertex.BufferBuilder#setColor(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:152
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), memPutByte(). คืนค่า: this.

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setColor(0, 0, 0, 0);

com.mojang.blaze3d.vertex.BufferBuilder#setLight(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:206
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Light

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), putPackedUv(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setLight(0);

com.mojang.blaze3d.vertex.BufferBuilder#setNormal(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:226
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Normal

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), memPutByte(), normalIntValue(). คืนค่า: this.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setNormal(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.BufferBuilder#setOverlay(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:191
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Overlay

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), putPackedUv(). คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setOverlay(0);

com.mojang.blaze3d.vertex.BufferBuilder#setUv(float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:175
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: beginElement(), memPutFloat(). คืนค่า: this.

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setUv(0.0F, 0.0F);

com.mojang.blaze3d.vertex.BufferBuilder#setUv1(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:186
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv1

ทำงานยังไง

เรียกต่อ: uvShort(). คืนค่า: this.uvShort((short)i, (short)j, VertexFormatElement.UV1).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setUv1(0, 0);

com.mojang.blaze3d.vertex.BufferBuilder#setUv2(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferBuilder.java:201
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv2

ทำงานยังไง

เรียกต่อ: uvShort(). คืนค่า: this.uvShort((short)i, (short)j, VertexFormatElement.UV2).

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

BufferBuilder instance = ...;
VertexConsumer result = instance.setUv2(0, 0);

BufferUploader

  • Full name: com.mojang.blaze3d.vertex.BufferUploader
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/BufferUploader.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.vertex.BufferUploader#draw(MeshData)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferUploader.java:30
  • Modifiers: public static
  • Return: void

คืออะไร

วาด draw

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), upload().

Parameters

  • MeshData meshData

ตัวอย่างใช้งาน

MeshData meshData = ...;
BufferUploader.draw(meshData);

com.mojang.blaze3d.vertex.BufferUploader#drawWithShader(MeshData)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferUploader.java:24
  • Modifiers: public static
  • Return: void

คืออะไร

วาด With Shader

ทำงานยังไง

เรียกต่อ: assertOnRenderThread(), upload(), getModelViewMatrix(), getProjectionMatrix(), getShader().

Parameters

  • MeshData meshData

ตัวอย่างใช้งาน

MeshData meshData = ...;
BufferUploader.drawWithShader(meshData);

com.mojang.blaze3d.vertex.BufferUploader#invalidate()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferUploader.java:20
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ invalidate ตาม implementation ของ BufferUploader

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BufferUploader.invalidate();

com.mojang.blaze3d.vertex.BufferUploader#reset()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/BufferUploader.java:13
  • Modifiers: public static
  • Return: void

คืออะไร

รีเซ็ต reset

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: invalidate(), unbind().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

BufferUploader.reset();

ByteBufferBuilder

  • Full name: com.mojang.blaze3d.vertex.ByteBufferBuilder
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/ByteBufferBuilder.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

com.mojang.blaze3d.vertex.ByteBufferBuilder#build()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:65
  • Modifiers: public
  • Return: ByteBufferBuilder.Result

คืออะไร

สร้าง build

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: nextResultOffset, resultCount. เรียกต่อ: checkOpen(), Result(). สร้างออบเจ็กต์: ByteBufferBuilder.Result. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder instance = ...;
ByteBufferBuilder.Result result = instance.build();

com.mojang.blaze3d.vertex.ByteBufferBuilder#ByteBufferBuilder(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:28
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ ByteBufferBuilder ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: capacity, pointer. เรียกต่อ: malloc(). สร้างออบเจ็กต์: OutOfMemoryError.

Parameters

  • int i

ตัวอย่างใช้งาน

ByteBufferBuilder instance = new ByteBufferBuilder(0);

com.mojang.blaze3d.vertex.ByteBufferBuilder#clear()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:79
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง clear

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: warn(), discard().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder instance = ...;
instance.clear();

com.mojang.blaze3d.vertex.ByteBufferBuilder#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:116
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: pointer, generation. เรียกต่อ: free().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder instance = ...;
instance.close();

com.mojang.blaze3d.vertex.ByteBufferBuilder#discard()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:87
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ discard ตาม implementation ของ ByteBufferBuilder

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: resultCount. เรียกต่อ: checkOpen(), discardResults().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder instance = ...;
instance.discard();

com.mojang.blaze3d.vertex.ByteBufferBuilder#reserve(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:37
  • Modifiers: public
  • Return: long

คืออะไร

ดำเนินการ reserve ตาม implementation ของ ByteBufferBuilder

ทำงานยังไง

แก้ state: writeOffset. เรียกต่อ: ensureCapacity(). คืนค่า: this.pointer + j.

Parameters

  • int i

ตัวอย่างใช้งาน

ByteBufferBuilder instance = ...;
long result = instance.reserve(0);

ByteBufferBuilder$Result

  • Full name: com.mojang.blaze3d.vertex.ByteBufferBuilder$Result
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/ByteBufferBuilder.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

com.mojang.blaze3d.vertex.ByteBufferBuilder$Result#byteBuffer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:145
  • Modifiers: public
  • Return: ByteBuffer

คืออะไร

ดำเนินการ byteBuffer ตาม implementation ของ ByteBufferBuilder$Result

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: isValid(), memByteBuffer(). สร้างออบเจ็กต์: IllegalStateException. คืนค่า: MemoryUtil.memByteBuffer(ByteBufferBuilder.this.pointer + this.offset, this.capacity).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder.Result instance = ...;
ByteBuffer result = instance.byteBuffer();

com.mojang.blaze3d.vertex.ByteBufferBuilder$Result#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/ByteBufferBuilder.java:153
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: closed. เรียกต่อ: isValid(), freeResult().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

ByteBufferBuilder.Result instance = ...;
instance.close();

MeshData

  • Full name: com.mojang.blaze3d.vertex.MeshData
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/MeshData.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

com.mojang.blaze3d.vertex.MeshData#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:77
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MeshData instance = ...;
instance.close();

com.mojang.blaze3d.vertex.MeshData#drawState()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:61
  • Modifiers: public
  • Return: MeshData.DrawState

คืออะไร

วาด State

ทำงานยังไง

คืนค่า: this.drawState.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MeshData instance = ...;
MeshData.DrawState result = instance.drawState();

com.mojang.blaze3d.vertex.MeshData#indexBuffer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:56
  • Modifiers: public
  • Return: ByteBuffer

คืออะไร

ดำเนินการ indexBuffer ตาม implementation ของ MeshData

ทำงานยังไง

เรียกต่อ: byteBuffer(). คืนค่า: this.indexBuffer != null ? this.indexBuffer.byteBuffer() : null.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MeshData instance = ...;
ByteBuffer result = instance.indexBuffer();

com.mojang.blaze3d.vertex.MeshData#MeshData(ByteBufferBuilder.Result,MeshData.DrawState)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:20
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ MeshData ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: vertexBuffer, drawState.

Parameters

  • ByteBufferBuilder.Result result
  • MeshData.DrawState drawState

ตัวอย่างใช้งาน

ByteBufferBuilder.Result result = ...;
MeshData.DrawState drawState = ...;
MeshData instance = new MeshData(result, drawState);

com.mojang.blaze3d.vertex.MeshData#sortQuads(ByteBufferBuilder,VertexSorting)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:65
  • Modifiers: public
  • Return: MeshData.SortState

คืออะไร

ดำเนินการ sortQuads ตาม implementation ของ MeshData

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: indexBuffer. เรียกต่อ: mode(), unpackQuadCentroids(), byteBuffer(), vertexCount(), format(), SortState(), indexType(), buildSortedIndexBuffer(). สร้างออบเจ็กต์: MeshData.SortState. มีจุด return อย่างน้อย 2 จุด.

Parameters

  • ByteBufferBuilder byteBufferBuilder
  • VertexSorting vertexSorting

ตัวอย่างใช้งาน

MeshData instance = ...;
ByteBufferBuilder byteBufferBuilder = ...;
VertexSorting vertexSorting = ...;
MeshData.SortState result = instance.sortQuads(byteBufferBuilder, vertexSorting);

com.mojang.blaze3d.vertex.MeshData#vertexBuffer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:52
  • Modifiers: public
  • Return: ByteBuffer

คืออะไร

ดำเนินการ vertexBuffer ตาม implementation ของ MeshData

ทำงานยังไง

เรียกต่อ: byteBuffer(). คืนค่า: this.vertexBuffer.byteBuffer().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

MeshData instance = ...;
ByteBuffer result = instance.vertexBuffer();

MeshData$SortState

  • Full name: com.mojang.blaze3d.vertex.MeshData$SortState
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/MeshData.java
  • Type: record
  • Modifiers: public

com.mojang.blaze3d.vertex.MeshData$SortState#buildSortedIndexBuffer(ByteBufferBuilder,VertexSorting)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/MeshData.java:91
  • Modifiers: public
  • Return: ByteBufferBuilder.Result

คืออะไร

สร้าง Sorted Index Buffer

ทำงานยังไง

มีการวนลูป. เรียกต่อ: sort(), reserve(), indexWriter(), accept(), build(). คืนค่า: byteBufferBuilder.build().

Parameters

  • ByteBufferBuilder byteBufferBuilder
  • VertexSorting vertexSorting

ตัวอย่างใช้งาน

MeshData.SortState instance = ...;
ByteBufferBuilder byteBufferBuilder = ...;
VertexSorting vertexSorting = ...;
ByteBufferBuilder.Result result = instance.buildSortedIndexBuffer(byteBufferBuilder, vertexSorting);

PoseStack

  • Full name: com.mojang.blaze3d.vertex.PoseStack
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/PoseStack.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.vertex.PoseStack#clear()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:73
  • Modifiers: public
  • Return: boolean

คืออะไร

ล้าง clear

ทำงานยังไง

เรียกต่อ: size(). คืนค่า: this.poseStack.size() == 1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack instance = ...;
boolean result = instance.clear();

com.mojang.blaze3d.vertex.PoseStack#last()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:69
  • Modifiers: public
  • Return: PoseStack.Pose

คืออะไร

ดำเนินการ last ตาม implementation ของ PoseStack

ทำงานยังไง

เรียกต่อ: getLast(). คืนค่า: this.poseStack.getLast().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack instance = ...;
PoseStack.Pose result = instance.last();

com.mojang.blaze3d.vertex.PoseStack#mulPose(Matrix4f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:84
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ mulPose ตาม implementation ของ PoseStack

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLast(), mul(), isPureTranslation(), isOrthonormal(), computeNormalMatrix(). สร้างออบเจ็กต์: Matrix3f.

Parameters

  • Matrix4f matrix4f

ตัวอย่างใช้งาน

PoseStack instance = ...;
Matrix4f matrix4f = ...;
instance.mulPose(matrix4f);

com.mojang.blaze3d.vertex.PoseStack#mulPose(Quaternionf)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:49
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ mulPose ตาม implementation ของ PoseStack

ทำงานยังไง

เรียกต่อ: getLast(), rotate().

Parameters

  • Quaternionf quaternionf

ตัวอย่างใช้งาน

PoseStack instance = ...;
Quaternionf quaternionf = ...;
instance.mulPose(quaternionf);

com.mojang.blaze3d.vertex.PoseStack#popPose()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:65
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ popPose ตาม implementation ของ PoseStack

ทำงานยังไง

เรียกต่อ: removeLast().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.popPose();

com.mojang.blaze3d.vertex.PoseStack#pushPose()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:61
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ pushPose ตาม implementation ของ PoseStack

ทำงานยังไง

เรียกต่อ: addLast(), Pose(), getLast(). สร้างออบเจ็กต์: PoseStack.Pose.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.pushPose();

com.mojang.blaze3d.vertex.PoseStack#rotateAround(Quaternionf,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:55
  • Modifiers: public
  • Return: void

คืออะไร

หมุน Around

ทำงานยังไง

เรียกต่อ: getLast(), rotate().

Parameters

  • Quaternionf quaternionf
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PoseStack instance = ...;
Quaternionf quaternionf = ...;
instance.rotateAround(quaternionf, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.PoseStack#scale(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:36
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ scale ตาม implementation ของ PoseStack

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: getLast(), abs(), signum().

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.scale(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.PoseStack#setIdentity()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:77
  • Modifiers: public
  • Return: void

คืออะไร

กำหนดค่า Identity

ทำงานยังไง

เรียกต่อ: getLast(), identity().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.setIdentity();

com.mojang.blaze3d.vertex.PoseStack#translate(double,double,double)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:23
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ translate ตาม implementation ของ PoseStack

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • double d
  • double e
  • double f

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.translate(0.0D, 0.0D, 0.0D);

com.mojang.blaze3d.vertex.PoseStack#translate(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:27
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ translate ตาม implementation ของ PoseStack

ทำงานยังไง

เรียกต่อ: getLast().

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

PoseStack instance = ...;
instance.translate(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.PoseStack#translate(Vec3)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:32
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ translate ตาม implementation ของ PoseStack

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • Vec3 vec3

ตัวอย่างใช้งาน

PoseStack instance = ...;
Vec3 vec3 = ...;
instance.translate(vec3);

PoseStack$Pose

  • Full name: com.mojang.blaze3d.vertex.PoseStack$Pose
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/PoseStack.java
  • Type: class
  • Modifiers: public static final

com.mojang.blaze3d.vertex.PoseStack$Pose#copy()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:135
  • Modifiers: public
  • Return: PoseStack.Pose

คืออะไร

คัดลอก copy

ทำงานยังไง

เรียกต่อ: Pose(). สร้างออบเจ็กต์: PoseStack.Pose. คืนค่า: new PoseStack.Pose(this).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack.Pose instance = ...;
PoseStack.Pose result = instance.copy();

com.mojang.blaze3d.vertex.PoseStack$Pose#normal()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:122
  • Modifiers: public
  • Return: Matrix3f

คืออะไร

ดำเนินการ normal ตาม implementation ของ PoseStack$Pose

ทำงานยังไง

คืนค่า: this.normal.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack.Pose instance = ...;
Matrix3f result = instance.normal();

com.mojang.blaze3d.vertex.PoseStack$Pose#pose()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:118
  • Modifiers: public
  • Return: Matrix4f

คืออะไร

ดำเนินการ pose ตาม implementation ของ PoseStack$Pose

ทำงานยังไง

คืนค่า: this.pose.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

PoseStack.Pose instance = ...;
Matrix4f result = instance.pose();

com.mojang.blaze3d.vertex.PoseStack$Pose#transformNormal(float,float,float,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:130
  • Modifiers: public
  • Return: Vector3f

คืออะไร

แปลงรูป Normal

ทำงานยังไง

เรียกต่อ: transform(), normalize(). คืนค่า: this.trustedNormals ? vector3f2 : vector3f2.normalize().

Parameters

  • float f
  • float g
  • float h
  • Vector3f vector3f

ตัวอย่างใช้งาน

PoseStack.Pose instance = ...;
Vector3f vector3f = ...;
Vector3f result = instance.transformNormal(0.0F, 0.0F, 0.0F, vector3f);

com.mojang.blaze3d.vertex.PoseStack$Pose#transformNormal(Vector3f,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/PoseStack.java:126
  • Modifiers: public
  • Return: Vector3f

คืออะไร

แปลงรูป Normal

ทำงานยังไง

คืนค่า: this.transformNormal(vector3f.x, vector3f.y, vector3f.z, vector3f2).

Parameters

  • Vector3f vector3f
  • Vector3f vector3f2

ตัวอย่างใช้งาน

PoseStack.Pose instance = ...;
Vector3f vector3f = ...;
Vector3f vector3f2 = ...;
Vector3f result = instance.transformNormal(vector3f, vector3f2);

SheetedDecalTextureGenerator

  • Full name: com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java
  • Type: class
  • Modifiers: public
  • Implements: VertexConsumer

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#addVertex(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:29
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

แก้ state: x, y, z. คืนค่า: this.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.addVertex(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#setColor(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:38
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

คืนค่า: this.

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.setColor(0, 0, 0, 0);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#setNormal(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:61
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Normal

ทำงานยังไง

เรียกต่อ: transform(), getApproximateNearest(), x(), y(), z(), transformPosition(), rotateY(), rotateX(). คืนค่า: this.

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.setNormal(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#setUv(float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:44
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv

ทำงานยังไง

คืนค่า: this.

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.setUv(0.0F, 0.0F);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#setUv1(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:49
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv1

ทำงานยังไง

คืนค่า: this.

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.setUv1(0, 0);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#setUv2(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:55
  • Modifiers: public
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv2

ทำงานยังไง

คืนค่า: this.

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

SheetedDecalTextureGenerator instance = ...;
VertexConsumer result = instance.setUv2(0, 0);

com.mojang.blaze3d.vertex.SheetedDecalTextureGenerator#SheetedDecalTextureGenerator(VertexConsumer,PoseStack.Pose,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/SheetedDecalTextureGenerator.java:22
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ SheetedDecalTextureGenerator ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: delegate, cameraInversePose, normalInversePose, textureScale. เรียกต่อ: pose(), invert(), normal(). สร้างออบเจ็กต์: Matrix4f, Matrix3f.

Parameters

  • VertexConsumer vertexConsumer
  • PoseStack.Pose pose
  • float f

ตัวอย่างใช้งาน

VertexConsumer vertexConsumer = ...;
PoseStack.Pose pose = ...;
SheetedDecalTextureGenerator instance = new SheetedDecalTextureGenerator(vertexConsumer, pose, 0.0F);

Tesselator

  • Full name: com.mojang.blaze3d.vertex.Tesselator
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/Tesselator.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.vertex.Tesselator#begin(VertexFormat.Mode,VertexFormat)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:38
  • Modifiers: public
  • Return: BufferBuilder

คืออะไร

ดำเนินการ begin ตาม implementation ของ Tesselator

ทำงานยังไง

สร้างออบเจ็กต์: BufferBuilder. คืนค่า: new BufferBuilder(this.buffer, mode, vertexFormat).

Parameters

  • VertexFormat.Mode mode
  • VertexFormat vertexFormat

ตัวอย่างใช้งาน

Tesselator instance = ...;
VertexFormat.Mode mode = ...;
VertexFormat vertexFormat = ...;
BufferBuilder result = instance.begin(mode, vertexFormat);

com.mojang.blaze3d.vertex.Tesselator#clear()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:42
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง clear

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Tesselator instance = ...;
instance.clear();

com.mojang.blaze3d.vertex.Tesselator#getInstance()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:22
  • Modifiers: public static
  • Return: Tesselator

คืออะไร

อ่านค่า Instance

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: IllegalStateException. คืนค่า: instance.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Tesselator result = Tesselator.getInstance();

com.mojang.blaze3d.vertex.Tesselator#init()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:14
  • Modifiers: public static
  • Return: void

คืออะไร

ดำเนินการ init ตาม implementation ของ Tesselator

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. สร้างออบเจ็กต์: IllegalStateException, Tesselator.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Tesselator.init();

com.mojang.blaze3d.vertex.Tesselator#Tesselator()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:34
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Tesselator ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

Tesselator instance = new Tesselator();

com.mojang.blaze3d.vertex.Tesselator#Tesselator(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/Tesselator.java:30
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ Tesselator ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: buffer. สร้างออบเจ็กต์: ByteBufferBuilder.

Parameters

  • int i

ตัวอย่างใช้งาน

Tesselator instance = new Tesselator(0);

VertexBuffer

  • Full name: com.mojang.blaze3d.vertex.VertexBuffer
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexBuffer.java
  • Type: class
  • Modifiers: public
  • Implements: AutoCloseable

com.mojang.blaze3d.vertex.VertexBuffer#bind()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:125
  • Modifiers: public
  • Return: void

คืออะไร

ผูก bind

ทำงานยังไง

เรียกต่อ: invalidate(), _glBindVertexArray().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
instance.bind();

com.mojang.blaze3d.vertex.VertexBuffer#close()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:162
  • Modifiers: public
  • Return: void

คืออะไร

ปิด close

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: indexBuffer, arrayObjectId. เรียกต่อ: glDeleteVertexArrays().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
instance.close();

com.mojang.blaze3d.vertex.VertexBuffer#draw()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:135
  • Modifiers: public
  • Return: void

คืออะไร

วาด draw

ทำงานยังไง

เรียกต่อ: drawElements(), getIndexType().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
instance.draw();

com.mojang.blaze3d.vertex.VertexBuffer#drawWithRenderType(RenderType)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:154
  • Modifiers: public
  • Return: void

คืออะไร

วาด With Render Type

ทำงานยังไง

เรียกต่อ: setupRenderState(), bind(), drawWithShader(), getModelViewMatrix(), getProjectionMatrix(), getShader(), unbind(), clearRenderState().

Parameters

  • RenderType renderType

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
RenderType renderType = ...;
instance.drawWithRenderType(renderType);

com.mojang.blaze3d.vertex.VertexBuffer#drawWithShader(Matrix4f,Matrix4f,CompiledShaderProgram)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:144
  • Modifiers: public
  • Return: void

คืออะไร

วาด With Shader

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: assertOnRenderThread(), setDefaultUniforms(), getInstance(), getWindow(), apply(), draw(), clear().

Parameters

  • Matrix4f matrix4f
  • Matrix4f matrix4f2
  • CompiledShaderProgram compiledShaderProgram

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
Matrix4f matrix4f = ...;
Matrix4f matrix4f2 = ...;
CompiledShaderProgram compiledShaderProgram = ...;
instance.drawWithShader(matrix4f, matrix4f2, compiledShaderProgram);

com.mojang.blaze3d.vertex.VertexBuffer#getFormat()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:176
  • Modifiers: public
  • Return: VertexFormat

คืออะไร

อ่านค่า Format

ทำงานยังไง

คืนค่า: this.format.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
VertexFormat result = instance.getFormat();

com.mojang.blaze3d.vertex.VertexBuffer#isInvalid()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:180
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบสถานะ Invalid

ทำงานยังไง

แก้ state: arrayObjectId. คืนค่า: this.arrayObjectId == -1.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
boolean result = instance.isInvalid();

com.mojang.blaze3d.vertex.VertexBuffer#unbind()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:130
  • Modifiers: public static
  • Return: void

คืออะไร

ยกเลิกการผูก unbind

ทำงานยังไง

เรียกต่อ: invalidate(), _glBindVertexArray().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexBuffer.unbind();

com.mojang.blaze3d.vertex.VertexBuffer#upload(MeshData)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:50
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ upload ตาม implementation ของ VertexBuffer

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: format, sequentialIndices, indexCount, indexType, mode. เรียกต่อ: isInvalid(), assertOnRenderThread(), drawState(), uploadVertexBuffer(), vertexBuffer(), uploadIndexBuffer(), indexBuffer(), indexCount().

Parameters

  • MeshData meshData

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
MeshData meshData = ...;
instance.upload(meshData);

com.mojang.blaze3d.vertex.VertexBuffer#uploadIndexBuffer(ByteBufferBuilder.Result)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:66
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ uploadIndexBuffer ตาม implementation ของ VertexBuffer

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการจัดการ exception. แก้ state: indexBuffer, sequentialIndices. เรียกต่อ: isInvalid(), assertOnRenderThread(), close(), byteBuffer(). สร้างออบเจ็กต์: GpuBuffer.

Parameters

  • ByteBufferBuilder.Result result

ตัวอย่างใช้งาน

VertexBuffer instance = ...;
ByteBufferBuilder.Result result = ...;
instance.uploadIndexBuffer(result);

com.mojang.blaze3d.vertex.VertexBuffer#uploadStatic(VertexFormat.Mode,VertexFormat,Consumer<VertexConsumer>)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:40
  • Modifiers: public static
  • Return: VertexBuffer

คืออะไร

ดำเนินการ uploadStatic ตาม implementation ของ VertexBuffer

ทำงานยังไง

เรียกต่อ: getInstance(), begin(), accept(), bind(), upload(), buildOrThrow(), unbind(). สร้างออบเจ็กต์: VertexBuffer. คืนค่า: vertexBuffer.

Parameters

  • VertexFormat.Mode mode
  • VertexFormat vertexFormat
  • Consumer<VertexConsumer> consumer

ตัวอย่างใช้งาน

VertexFormat.Mode mode = ...;
VertexFormat vertexFormat = ...;
Consumer<VertexConsumer> consumer = ...;
VertexBuffer result = VertexBuffer.uploadStatic(mode, vertexFormat, consumer);

com.mojang.blaze3d.vertex.VertexBuffer#VertexBuffer(BufferUsage)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexBuffer.java:33
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VertexBuffer ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

แก้ state: usage, vertexBuffer, arrayObjectId. เรียกต่อ: assertOnRenderThread(), _glGenVertexArrays(). สร้างออบเจ็กต์: GpuBuffer.

Parameters

  • BufferUsage bufferUsage

ตัวอย่างใช้งาน

BufferUsage bufferUsage = ...;
VertexBuffer instance = new VertexBuffer(bufferUsage);

VertexConsumer

  • Full name: com.mojang.blaze3d.vertex.VertexConsumer
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexConsumer.java
  • Type: interface
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:17
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.addVertex(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(float,float,float,int,float,float,int,int,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:29
  • Modifiers: default
  • Return: void

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

เรียกต่อ: setColor(), setUv(), setOverlay(), setLight(), setNormal().

Parameters

  • float f
  • float g
  • float h
  • int i
  • float j
  • float k
  • int l
  • int m
  • float n
  • float o
  • float p

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
instance.addVertex(0.0F, 0.0F, 0.0F, 0, 0.0F, 0.0F, 0, 0, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(Matrix4f,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:120
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

เรียกต่อ: transformPosition(), x(), y(), z(). สร้างออบเจ็กต์: Vector3f. คืนค่า: this.addVertex(vector3f.x(), vector3f.y(), vector3f.z()).

Parameters

  • Matrix4f matrix4f
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
Matrix4f matrix4f = ...;
VertexConsumer result = instance.addVertex(matrix4f, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(PoseStack.Pose,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:116
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

เรียกต่อ: pose(). คืนค่า: this.addVertex(pose.pose(), f, g, h).

Parameters

  • PoseStack.Pose pose
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
VertexConsumer result = instance.addVertex(pose, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(PoseStack.Pose,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:112
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

เรียกต่อ: x(), y(), z(). คืนค่า: this.addVertex(pose, vector3f.x(), vector3f.y(), vector3f.z()).

Parameters

  • PoseStack.Pose pose
  • Vector3f vector3f

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
Vector3f vector3f = ...;
VertexConsumer result = instance.addVertex(pose, vector3f);

com.mojang.blaze3d.vertex.VertexConsumer#addVertex(Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:108
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

เพิ่ม Vertex

ทำงานยังไง

เรียกต่อ: x(), y(), z(). คืนค่า: this.addVertex(vector3f.x(), vector3f.y(), vector3f.z()).

Parameters

  • Vector3f vector3f

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
Vector3f vector3f = ...;
VertexConsumer result = instance.addVertex(vector3f);

com.mojang.blaze3d.vertex.VertexConsumer#putBulkData(PoseStack.Pose,BakedQuad,float,float,float,float,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:58
  • Modifiers: default
  • Return: void

คืออะไร

ดำเนินการ putBulkData ตาม implementation ของ VertexConsumer

ทำงานยังไง

ทำงานตาม body โดยตรง (ประมาณ 1 statement).

Parameters

  • PoseStack.Pose pose
  • BakedQuad bakedQuad
  • float f
  • float g
  • float h
  • float i
  • int j
  • int k

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
BakedQuad bakedQuad = ...;
instance.putBulkData(pose, bakedQuad, 0.0F, 0.0F, 0.0F, 0.0F, 0, 0);

com.mojang.blaze3d.vertex.VertexConsumer#putBulkData(PoseStack.Pose,BakedQuad,float[],float,float,float,float,int[],int,boolean)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:62
  • Modifiers: default
  • Return: void

คืออะไร

ดำเนินการ putBulkData ตาม implementation ของ VertexConsumer

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป ; มีการจัดการ exception. เรียกต่อ: getVertices(), getDirection(), getUnitVec3i(), pose(), transformNormal(), getX(), getY(), getZ(). สร้างออบเจ็กต์: Vector3f.

Parameters

  • PoseStack.Pose pose
  • BakedQuad bakedQuad
  • float[] fs
  • float f
  • float g
  • float h
  • float i
  • int[] is
  • int j
  • boolean bl

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
BakedQuad bakedQuad = ...;
float[] fs = ...;
int[] is = ...;
instance.putBulkData(pose, bakedQuad, fs, 0.0F, 0.0F, 0.0F, 0.0F, is, 0, true);

com.mojang.blaze3d.vertex.VertexConsumer#setColor(float,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:38
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

คืนค่า: this.setColor((int)(f * 255.0F), (int)(g * 255.0F), (int)(h * 255.0F), (int)(i * 255.0F)).

Parameters

  • float f
  • float g
  • float h
  • float i

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setColor(0.0F, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#setColor(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:42
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

เรียกต่อ: red(), green(), blue(), alpha(). คืนค่า: this.setColor(ARGB.red(i), ARGB.green(i), ARGB.blue(i), ARGB.alpha(i)).

Parameters

  • int i

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setColor(0);

com.mojang.blaze3d.vertex.VertexConsumer#setColor(int,int,int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:19
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Color

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j
  • int k
  • int l

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setColor(0, 0, 0, 0);

com.mojang.blaze3d.vertex.VertexConsumer#setLight(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:50
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Light

ทำงานยังไง

เรียกต่อ: setUv2(). คืนค่า: this.setUv2(i & 65535, i >> 16 & 65535).

Parameters

  • int i

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setLight(0);

com.mojang.blaze3d.vertex.VertexConsumer#setNormal(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:27
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Normal

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setNormal(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#setNormal(PoseStack.Pose,float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:125
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Normal

ทำงานยังไง

เรียกต่อ: transformNormal(), x(), y(), z(). สร้างออบเจ็กต์: Vector3f. คืนค่า: this.setNormal(vector3f.x(), vector3f.y(), vector3f.z()).

Parameters

  • PoseStack.Pose pose
  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
VertexConsumer result = instance.setNormal(pose, 0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#setNormal(PoseStack.Pose,Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:130
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Normal

ทำงานยังไง

เรียกต่อ: x(), y(), z(). คืนค่า: this.setNormal(pose, vector3f.x(), vector3f.y(), vector3f.z()).

Parameters

  • PoseStack.Pose pose
  • Vector3f vector3f

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
PoseStack.Pose pose = ...;
Vector3f vector3f = ...;
VertexConsumer result = instance.setNormal(pose, vector3f);

com.mojang.blaze3d.vertex.VertexConsumer#setOverlay(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:54
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Overlay

ทำงานยังไง

เรียกต่อ: setUv1(). คืนค่า: this.setUv1(i & 65535, i >> 16 & 65535).

Parameters

  • int i

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setOverlay(0);

com.mojang.blaze3d.vertex.VertexConsumer#setUv(float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:21
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • float f
  • float g

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setUv(0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexConsumer#setUv1(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:23
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv1

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setUv1(0, 0);

com.mojang.blaze3d.vertex.VertexConsumer#setUv2(int,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:25
  • Modifiers: ``
  • Return: VertexConsumer

คืออะไร

กำหนดค่า Uv2

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • int i
  • int j

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setUv2(0, 0);

com.mojang.blaze3d.vertex.VertexConsumer#setWhiteAlpha(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexConsumer.java:46
  • Modifiers: default
  • Return: VertexConsumer

คืออะไร

กำหนดค่า White Alpha

ทำงานยังไง

เรียกต่อ: setColor(), color(). คืนค่า: this.setColor(ARGB.color(i, -1)).

Parameters

  • int i

ตัวอย่างใช้งาน

VertexConsumer instance = ...;
VertexConsumer result = instance.setWhiteAlpha(0);

VertexFormat

  • Full name: com.mojang.blaze3d.vertex.VertexFormat
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormat.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormat#bindAttributes(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:44
  • Modifiers: public
  • Return: void

คืออะไร

ผูก Attributes

ทำงานยังไง

มีการวนลูป. เรียกต่อ: getElementAttributeNames(), _glBindAttribLocation().

Parameters

  • int i

ตัวอย่างใช้งาน

VertexFormat instance = ...;
instance.bindAttributes(0);

com.mojang.blaze3d.vertex.VertexFormat#builder()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:40
  • Modifiers: public static
  • Return: VertexFormat.Builder

คืออะไร

ดำเนินการ builder ตาม implementation ของ VertexFormat

ทำงานยังไง

เรียกต่อ: Builder(). สร้างออบเจ็กต์: VertexFormat.Builder. คืนค่า: new VertexFormat.Builder().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat.Builder result = VertexFormat.builder();

com.mojang.blaze3d.vertex.VertexFormat#clearBufferState()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:122
  • Modifiers: public
  • Return: void

คืออะไร

ล้าง Buffer State

ทำงานยังไง

มีการวนลูป. เรียกต่อ: assertOnRenderThread(), size(), _disableVertexAttribArray().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
instance.clearBufferState();

com.mojang.blaze3d.vertex.VertexFormat#contains(VertexFormatElement)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:78
  • Modifiers: public
  • Return: boolean

คืออะไร

ตรวจสอบว่ามี contains

ทำงานยังไง

เรียกต่อ: mask(). คืนค่า: (this.elementsMask & vertexFormatElement.mask()) != 0.

Parameters

  • VertexFormatElement vertexFormatElement

ตัวอย่างใช้งาน

VertexFormat instance = ...;
VertexFormatElement vertexFormatElement = ...;
boolean result = instance.contains(vertexFormatElement);

com.mojang.blaze3d.vertex.VertexFormat#equals(Object)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:95
  • Modifiers: public
  • Return: boolean

คืออะไร

เปรียบเทียบความเท่ากัน equals

ทำงานยังไง

แก้ state: elementsMask, vertexSize.

Parameters

  • Object object

ตัวอย่างใช้งาน

VertexFormat instance = ...;
Object object = ...;
boolean result = instance.equals(object);

com.mojang.blaze3d.vertex.VertexFormat#getElementAttributeNames()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:66
  • Modifiers: public
  • Return: List<String>

คืออะไร

อ่านค่า Element Attribute Names

ทำงานยังไง

คืนค่า: this.names.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
List<String> result = instance.getElementAttributeNames();

com.mojang.blaze3d.vertex.VertexFormat#getElementName(VertexFormatElement)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:86
  • Modifiers: public
  • Return: String

คืออะไร

อ่านค่า Element Name

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: indexOf(), get(). สร้างออบเจ็กต์: IllegalArgumentException. คืนค่า: this.names.get(i).

Parameters

  • VertexFormatElement vertexFormatElement

ตัวอย่างใช้งาน

VertexFormat instance = ...;
VertexFormatElement vertexFormatElement = ...;
String result = instance.getElementName(vertexFormatElement);

com.mojang.blaze3d.vertex.VertexFormat#getElements()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:62
  • Modifiers: public
  • Return: List<VertexFormatElement>

คืออะไร

อ่านค่า Elements

ทำงานยังไง

คืนค่า: this.elements.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
List<VertexFormatElement> result = instance.getElements();

com.mojang.blaze3d.vertex.VertexFormat#getElementsMask()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:82
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Elements Mask

ทำงานยังไง

คืนค่า: this.elementsMask.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
int result = instance.getElementsMask();

com.mojang.blaze3d.vertex.VertexFormat#getImmediateDrawVertexBuffer()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:130
  • Modifiers: public
  • Return: VertexBuffer

คืออะไร

อ่านค่า Immediate Draw Vertex Buffer

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. แก้ state: immediateDrawVertexBuffer. สร้างออบเจ็กต์: VertexBuffer. คืนค่า: vertexBuffer.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
VertexBuffer result = instance.getImmediateDrawVertexBuffer();

com.mojang.blaze3d.vertex.VertexFormat#getOffset(VertexFormatElement)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:74
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Offset

ทำงานยังไง

เรียกต่อ: id(). คืนค่า: this.offsetsByElement[vertexFormatElement.id()].

Parameters

  • VertexFormatElement vertexFormatElement

ตัวอย่างใช้งาน

VertexFormat instance = ...;
VertexFormatElement vertexFormatElement = ...;
int result = instance.getOffset(vertexFormatElement);

com.mojang.blaze3d.vertex.VertexFormat#getOffsetsByElement()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:70
  • Modifiers: public
  • Return: int[]

คืออะไร

อ่านค่า Offsets By Element

ทำงานยังไง

คืนค่า: this.offsetsByElement.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
int[] result = instance.getOffsetsByElement();

com.mojang.blaze3d.vertex.VertexFormat#getVertexSize()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:58
  • Modifiers: public
  • Return: int

คืออะไร

อ่านค่า Vertex Size

ทำงานยังไง

คืนค่า: this.vertexSize.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
int result = instance.getVertexSize();

com.mojang.blaze3d.vertex.VertexFormat#hashCode()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:106
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ hashCode ตาม implementation ของ VertexFormat

ทำงานยังไง

คืนค่า: this.elementsMask * 31 + Arrays.hashCode(this.offsetsByElement).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
int result = instance.hashCode();

com.mojang.blaze3d.vertex.VertexFormat#setupBufferState()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:111
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ setupBufferState ตาม implementation ของ VertexFormat

ทำงานยังไง

มีการวนลูป. เรียกต่อ: assertOnRenderThread(), getVertexSize(), size(), _enableVertexAttribArray(), get(), getOffset().

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
instance.setupBufferState();

com.mojang.blaze3d.vertex.VertexFormat#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:53
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ VertexFormat

ทำงานยังไง

คืนค่า: "VertexFormat" + this.names.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat instance = ...;
String result = instance.toString();

VertexFormat$Builder

  • Full name: com.mojang.blaze3d.vertex.VertexFormat$Builder
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormat.java
  • Type: class
  • Modifiers: public static

com.mojang.blaze3d.vertex.VertexFormat$Builder#add(String,VertexFormatElement)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:148
  • Modifiers: public
  • Return: VertexFormat.Builder

คืออะไร

เพิ่ม add

ทำงานยังไง

แก้ state: offset. เรียกต่อ: put(), byteSize(). คืนค่า: this.

Parameters

  • String string
  • VertexFormatElement vertexFormatElement

ตัวอย่างใช้งาน

VertexFormat.Builder instance = ...;
VertexFormatElement vertexFormatElement = ...;
VertexFormat.Builder result = instance.add("value", vertexFormatElement);

com.mojang.blaze3d.vertex.VertexFormat$Builder#build()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:160
  • Modifiers: public
  • Return: VertexFormat

คืออะไร

สร้าง build

ทำงานยังไง

เรียกต่อ: buildOrThrow(), values(), asList(), keySet(). สร้างออบเจ็กต์: VertexFormat. คืนค่า: new VertexFormat(immutableList, immutableList2, this.offsets, this.offset).

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormat.Builder instance = ...;
VertexFormat result = instance.build();

com.mojang.blaze3d.vertex.VertexFormat$Builder#padding(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:155
  • Modifiers: public
  • Return: VertexFormat.Builder

คืออะไร

ดำเนินการ padding ตาม implementation ของ VertexFormat$Builder

ทำงานยังไง

แก้ state: offset. คืนค่า: this.

Parameters

  • int i

ตัวอย่างใช้งาน

VertexFormat.Builder instance = ...;
VertexFormat.Builder result = instance.padding(0);

VertexFormat$IndexType

  • Full name: com.mojang.blaze3d.vertex.VertexFormat$IndexType
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormat.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormat$IndexType#least(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:181
  • Modifiers: public static
  • Return: VertexFormat.IndexType

คืออะไร

ดำเนินการ least ตาม implementation ของ VertexFormat$IndexType

ทำงานยังไง

คืนค่า: (i & -65536) != 0 ? INT : SHORT.

Parameters

  • int i

ตัวอย่างใช้งาน

VertexFormat.IndexType result = VertexFormat.IndexType.least(0);

VertexFormat$Mode

  • Full name: com.mojang.blaze3d.vertex.VertexFormat$Mode
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormat.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormat$Mode#indexCount(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormat.java:209
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ indexCount ตาม implementation ของ VertexFormat$Mode

ทำงานยังไง

แยกกรณีด้วย switch. คืนค่า: switch (this) { case LINES, QUADS -> i / 4 * 6.

Parameters

  • int i

ตัวอย่างใช้งาน

VertexFormat.Mode instance = ...;
int result = instance.indexCount(0);

VertexFormatElement

  • Full name: com.mojang.blaze3d.vertex.VertexFormatElement
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormatElement.java
  • Type: record
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormatElement#byId(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:66
  • Modifiers: public static
  • Return: VertexFormatElement

คืออะไร

ดำเนินการ byId ตาม implementation ของ VertexFormatElement

ทำงานยังไง

คืนค่า: BY_ID[i].

Parameters

  • int i

ตัวอย่างใช้งาน

VertexFormatElement result = VertexFormatElement.byId(0);

com.mojang.blaze3d.vertex.VertexFormatElement#byteSize()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:58
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ byteSize ตาม implementation ของ VertexFormatElement

ทำงานยังไง

เรียกต่อ: size(). คืนค่า: this.type.size() * this.count.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement instance = ...;
int result = instance.byteSize();

com.mojang.blaze3d.vertex.VertexFormatElement#elementsFromMask(int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:71
  • Modifiers: public static
  • Return: Stream<VertexFormatElement>

คืออะไร

ดำเนินการ elementsFromMask ตาม implementation ของ VertexFormatElement

ทำงานยังไง

เรียกต่อ: stream(), filter(), mask(). คืนค่า: ELEMENTS.stream().filter(vertexFormatElement -> vertexFormatElement != null && (i & vertexFormatElement.mask()) != 0).

Parameters

  • int i

ตัวอย่างใช้งาน

Stream<VertexFormatElement> result = VertexFormatElement.elementsFromMask(0);

com.mojang.blaze3d.vertex.VertexFormatElement#mask()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:54
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ mask ตาม implementation ของ VertexFormatElement

ทำงานยังไง

คืนค่า: 1 << this.id.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement instance = ...;
int result = instance.mask();

com.mojang.blaze3d.vertex.VertexFormatElement#register(int,int,VertexFormatElement.Type,VertexFormatElement.Usage,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:34
  • Modifiers: public static
  • Return: VertexFormatElement

คืออะไร

ลงทะเบียน register

ทำงานยังไง

ตรวจเงื่อนไขด้วย if ; มีการวนลูป. เรียกต่อ: add(). สร้างออบเจ็กต์: VertexFormatElement, IllegalArgumentException. คืนค่า: vertexFormatElement.

Parameters

  • int i
  • int j
  • VertexFormatElement.Type type
  • VertexFormatElement.Usage usage
  • int k

ตัวอย่างใช้งาน

VertexFormatElement.Type type = ...;
VertexFormatElement.Usage usage = ...;
VertexFormatElement result = VertexFormatElement.register(0, 0, type, usage, 0);

com.mojang.blaze3d.vertex.VertexFormatElement#setupBufferState(int,long,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:62
  • Modifiers: public
  • Return: void

คืออะไร

ดำเนินการ setupBufferState ตาม implementation ของ VertexFormatElement

ทำงานยังไง

เรียกต่อ: glType().

Parameters

  • int i
  • long l
  • int j

ตัวอย่างใช้งาน

VertexFormatElement instance = ...;
instance.setupBufferState(0, 0L, 0);

com.mojang.blaze3d.vertex.VertexFormatElement#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:49
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ VertexFormatElement

ทำงานยังไง

คืนค่า: this.count + "," + this.usage + "," + this.type + " (" + this.id + ")".

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement instance = ...;
String result = instance.toString();

com.mojang.blaze3d.vertex.VertexFormatElement#VertexFormatElement(int,int,VertexFormatElement.Type,VertexFormatElement.Usage,int)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:24
  • Modifiers: public
  • Kind: constructor

คืออะไร

สร้างออบเจ็กต์ VertexFormatElement ด้วยพารามิเตอร์ที่ระบุ

ทำงานยังไง

ตรวจเงื่อนไขด้วย if. เรียกต่อ: supportsUsage(). สร้างออบเจ็กต์: IllegalArgumentException, IllegalStateException.

Parameters

  • int id
  • int index
  • VertexFormatElement.Type type
  • VertexFormatElement.Usage usage
  • int count

ตัวอย่างใช้งาน

VertexFormatElement.Type type = ...;
VertexFormatElement.Usage usage = ...;
VertexFormatElement instance = new VertexFormatElement(0, 0, type, usage, 0);

VertexFormatElement$Type

  • Full name: com.mojang.blaze3d.vertex.VertexFormatElement$Type
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormatElement.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormatElement$Type#glType()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:99
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ glType ตาม implementation ของ VertexFormatElement$Type

ทำงานยังไง

คืนค่า: this.glType.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement.Type instance = ...;
int result = instance.glType();

com.mojang.blaze3d.vertex.VertexFormatElement$Type#size()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:95
  • Modifiers: public
  • Return: int

คืออะไร

ดำเนินการ size ตาม implementation ของ VertexFormatElement$Type

ทำงานยังไง

คืนค่า: this.size.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement.Type instance = ...;
int result = instance.size();

com.mojang.blaze3d.vertex.VertexFormatElement$Type#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:103
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ VertexFormatElement$Type

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement.Type instance = ...;
String result = instance.toString();

VertexFormatElement$Usage

  • Full name: com.mojang.blaze3d.vertex.VertexFormatElement$Usage
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexFormatElement.java
  • Type: enum
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexFormatElement$Usage#toString()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexFormatElement.java:131
  • Modifiers: public
  • Return: String

คืออะไร

ดำเนินการ toString ตาม implementation ของ VertexFormatElement$Usage

ทำงานยังไง

คืนค่า: this.name.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexFormatElement.Usage instance = ...;
String result = instance.toString();

VertexMultiConsumer

  • Full name: com.mojang.blaze3d.vertex.VertexMultiConsumer
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexMultiConsumer.java
  • Type: class
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexMultiConsumer#create()

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexMultiConsumer.java:9
  • Modifiers: public static
  • Return: VertexConsumer

คืออะไร

สร้าง create

ทำงานยังไง

สร้างออบเจ็กต์: IllegalArgumentException.

Parameters

  • ไม่มี

ตัวอย่างใช้งาน

VertexConsumer result = VertexMultiConsumer.create();

com.mojang.blaze3d.vertex.VertexMultiConsumer#create(VertexConsumer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexMultiConsumer.java:13
  • Modifiers: public static
  • Return: VertexConsumer

คืออะไร

สร้าง create

ทำงานยังไง

คืนค่า: vertexConsumer.

Parameters

  • VertexConsumer vertexConsumer

ตัวอย่างใช้งาน

VertexConsumer vertexConsumer = ...;
VertexConsumer result = VertexMultiConsumer.create(vertexConsumer);

com.mojang.blaze3d.vertex.VertexMultiConsumer#create(VertexConsumer,VertexConsumer)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexMultiConsumer.java:17
  • Modifiers: public static
  • Return: VertexConsumer

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: Double(). สร้างออบเจ็กต์: VertexMultiConsumer.Double. คืนค่า: new VertexMultiConsumer.Double(vertexConsumer, vertexConsumer2).

Parameters

  • VertexConsumer vertexConsumer
  • VertexConsumer vertexConsumer2

ตัวอย่างใช้งาน

VertexConsumer vertexConsumer = ...;
VertexConsumer vertexConsumer2 = ...;
VertexConsumer result = VertexMultiConsumer.create(vertexConsumer, vertexConsumer2);

com.mojang.blaze3d.vertex.VertexMultiConsumer#create(VertexConsumer[])

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexMultiConsumer.java:21
  • Modifiers: public static
  • Return: VertexConsumer

คืออะไร

สร้าง create

ทำงานยังไง

เรียกต่อ: Multiple(). สร้างออบเจ็กต์: VertexMultiConsumer.Multiple. คืนค่า: new VertexMultiConsumer.Multiple(vertexConsumers).

Parameters

  • VertexConsumer[] vertexConsumers

ตัวอย่างใช้งาน

VertexConsumer[] vertexConsumers = ...;
VertexConsumer result = VertexMultiConsumer.create(vertexConsumers);

VertexSorting

  • Full name: com.mojang.blaze3d.vertex.VertexSorting
  • Package: com.mojang.blaze3d.vertex
  • Source: clientOnlycom/mojang/blaze3d/vertex/VertexSorting.java
  • Type: interface
  • Modifiers: public

com.mojang.blaze3d.vertex.VertexSorting#byDistance(float,float,float)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexSorting.java:14
  • Modifiers: static
  • Return: VertexSorting

คืออะไร

ดำเนินการ byDistance ตาม implementation ของ VertexSorting

ทำงานยังไง

สร้างออบเจ็กต์: Vector3f. คืนค่า: byDistance(new Vector3f(f, g, h)).

Parameters

  • float f
  • float g
  • float h

ตัวอย่างใช้งาน

VertexSorting result = VertexSorting.byDistance(0.0F, 0.0F, 0.0F);

com.mojang.blaze3d.vertex.VertexSorting#byDistance(Vector3f)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexSorting.java:18
  • Modifiers: static
  • Return: VertexSorting

คืออะไร

ดำเนินการ byDistance ตาม implementation ของ VertexSorting

ทำงานยังไง

คืนค่า: byDistance(vector3f::distanceSquared).

Parameters

  • Vector3f vector3f

ตัวอย่างใช้งาน

Vector3f vector3f = ...;
VertexSorting result = VertexSorting.byDistance(vector3f);

com.mojang.blaze3d.vertex.VertexSorting#byDistance(VertexSorting.DistanceFunction)

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexSorting.java:22
  • Modifiers: static
  • Return: VertexSorting

คืออะไร

ดำเนินการ byDistance ตาม implementation ของ VertexSorting

ทำงานยังไง

มีการวนลูป. เรียกต่อ: apply(), mergeSort(), compare(). มีจุด return อย่างน้อย 2 จุด.

Parameters

  • VertexSorting.DistanceFunction distanceFunction

ตัวอย่างใช้งาน

VertexSorting.DistanceFunction distanceFunction = ...;
VertexSorting result = VertexSorting.byDistance(distanceFunction);

com.mojang.blaze3d.vertex.VertexSorting#sort(Vector3f[])

  • Origin: clientOnly
  • Source: com/mojang/blaze3d/vertex/VertexSorting.java:36
  • Modifiers: ``
  • Return: int[]

คืออะไร

ดำเนินการ sort ตาม implementation ของ VertexSorting

ทำงานยังไง

ไม่มี body ใน source declaration นี้

Parameters

  • Vector3f[] vector3fs

ตัวอย่างใช้งาน

VertexSorting instance = ...;
Vector3f[] vector3fs = ...;
int[] result = instance.sort(vector3fs);