2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_287 net/minecraft/client/render/BufferBuilder
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT Builds a buffer of primitives and optionally sorts them by the distance
|
|
|
|
COMMENT from the camera.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This builder can sort quad primitives. It sorts them by the distance
|
|
|
|
COMMENT between the camera position and the center of the quad. Sorting is
|
|
|
|
COMMENT required when drawing translucent objects because they have to be drawn
|
|
|
|
COMMENT in back-to-front order. See
|
|
|
|
COMMENT <a href="https://www.khronos.org/opengl/wiki/Transparency_Sorting">
|
|
|
|
COMMENT Transparency Sorting - OpenGL Wiki</a>.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>For {@link VertexFormat.DrawMode#LINES LINES} and {@link
|
|
|
|
COMMENT VertexFormat.DrawMode#LINE_STRIP LINE_STRIP} draw modes, this builder
|
|
|
|
COMMENT duplicates every vertex in a line to produce a quad with zero area. See
|
2022-11-16 07:53:09 -05:00
|
|
|
COMMENT {@link GameRenderer#getRenderTypeLinesProgram}.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1553 currentElementId I
|
|
|
|
FIELD field_1554 vertexCount I
|
2019-10-09 12:43:46 -04:00
|
|
|
FIELD field_1555 buffer Ljava/nio/ByteBuffer;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1556 building Z
|
2022-01-19 12:26:32 -05:00
|
|
|
FIELD field_1557 LOGGER Lorg/slf4j/Logger;
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_1558 currentElement Lnet/minecraft/class_296;
|
|
|
|
FIELD field_1565 format Lnet/minecraft/class_293;
|
2020-11-04 15:44:22 -05:00
|
|
|
FIELD field_1567 drawMode Lnet/minecraft/class_293$class_5596;
|
2019-10-30 12:15:03 -04:00
|
|
|
FIELD field_20884 elementOffset I
|
2022-11-02 10:30:38 -04:00
|
|
|
FIELD field_21594 canSkipElementChecks Z
|
|
|
|
COMMENT Whether this builder is aware of the vertex format and can skip checks
|
|
|
|
COMMENT for the current target element while building a vertex in {@link
|
|
|
|
COMMENT #vertex(float, float, float, float, float, float, float, float, float, int, int, float, float, float)}.
|
2021-04-18 09:03:07 -04:00
|
|
|
FIELD field_21595 hasOverlay Z
|
2022-10-26 10:05:20 -04:00
|
|
|
FIELD field_27348 sortingPrimitiveCenters [Lorg/joml/Vector3f;
|
2022-02-16 11:58:50 -05:00
|
|
|
FIELD field_27352 hasNoVertexBuffer Z
|
2022-05-17 05:57:10 -04:00
|
|
|
FIELD field_39061 builtBufferCount I
|
|
|
|
FIELD field_39062 batchOffset I
|
2023-03-25 03:50:21 -04:00
|
|
|
FIELD field_43358 sorter Lnet/minecraft/class_8251;
|
2023-10-22 01:47:45 -04:00
|
|
|
FIELD field_46839 ROUND_SIZE_CHANGE I
|
|
|
|
FIELD field_46840 closed Z
|
2019-01-16 15:48:45 -05:00
|
|
|
METHOD <init> (I)V
|
2019-10-09 12:43:46 -04:00
|
|
|
ARG 1 initialCapacity
|
2022-11-02 10:30:38 -04:00
|
|
|
METHOD method_1324 beginSortedIndexBuffer (Lnet/minecraft/class_287$class_5594;)V
|
2021-02-13 12:03:45 -05:00
|
|
|
ARG 1 state
|
2022-04-27 13:09:08 -04:00
|
|
|
METHOD method_1326 end ()Lnet/minecraft/class_287$class_7433;
|
2022-05-17 05:57:10 -04:00
|
|
|
COMMENT Builds a buffer from the current batch and resets the building state.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Unlike {@link #endNullable()}, this always builds a buffer even if
|
|
|
|
COMMENT there are no vertices in the current batch.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalStateException if this builder has not begun building
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the buffer built from the current batch
|
2020-11-04 15:44:22 -05:00
|
|
|
METHOD method_1328 begin (Lnet/minecraft/class_293$class_5596;Lnet/minecraft/class_293;)V
|
2020-11-06 09:25:59 -05:00
|
|
|
ARG 1 drawMode
|
2019-10-09 12:43:46 -04:00
|
|
|
ARG 2 format
|
2022-11-02 10:30:38 -04:00
|
|
|
METHOD method_1334 getSortingData ()Lnet/minecraft/class_287$class_5594;
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_1335 grow (I)V
|
|
|
|
ARG 1 size
|
|
|
|
METHOD method_1343 clear ()V
|
2019-10-30 12:15:03 -04:00
|
|
|
METHOD method_22892 grow ()V
|
|
|
|
METHOD method_22893 isBuilding ()Z
|
|
|
|
METHOD method_23477 reset ()V
|
2020-11-06 09:25:59 -05:00
|
|
|
METHOD method_23918 setFormat (Lnet/minecraft/class_293;)V
|
|
|
|
ARG 1 format
|
2022-11-02 10:30:38 -04:00
|
|
|
METHOD method_31949 getIndexConsumer (ILnet/minecraft/class_293$class_5595;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
|
2022-05-17 05:57:10 -04:00
|
|
|
ARG 1 offset
|
|
|
|
ARG 2 indexType
|
2022-02-16 11:58:50 -05:00
|
|
|
METHOD method_31950 writeSortedIndices (Lnet/minecraft/class_293$class_5595;)V
|
2022-05-17 05:57:10 -04:00
|
|
|
ARG 1 indexType
|
|
|
|
METHOD method_31953 (Lorg/apache/commons/lang3/mutable/MutableInt;I)V
|
|
|
|
ARG 2 index
|
2022-10-26 10:05:20 -04:00
|
|
|
METHOD method_31954 buildPrimitiveCenters ()[Lorg/joml/Vector3f;
|
2022-05-17 05:57:10 -04:00
|
|
|
METHOD method_43574 isBatchEmpty ()Z
|
|
|
|
METHOD method_43575 endNullable ()Lnet/minecraft/class_287$class_7433;
|
|
|
|
COMMENT Builds a buffer if there are vertices in the current batch and resets
|
|
|
|
COMMENT the building state.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalStateException if this builder has not begun building
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return the built buffer if there are vertices, otherwise {@code null}
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #end()
|
|
|
|
METHOD method_43576 slice (II)Ljava/nio/ByteBuffer;
|
|
|
|
ARG 1 start
|
|
|
|
ARG 2 end
|
|
|
|
METHOD method_43577 ensureBuilding ()V
|
|
|
|
METHOD method_43578 build ()Lnet/minecraft/class_287$class_7433;
|
|
|
|
METHOD method_43579 resetBuilding ()V
|
|
|
|
METHOD method_43580 releaseBuiltBuffer ()V
|
2023-03-25 03:50:21 -04:00
|
|
|
METHOD method_49904 setSorter (Lnet/minecraft/class_8251;)V
|
|
|
|
ARG 1 sorter
|
|
|
|
METHOD method_49905 (Lorg/apache/commons/lang3/mutable/MutableInt;I)V
|
|
|
|
ARG 2 index
|
2023-10-22 01:47:45 -04:00
|
|
|
METHOD method_54558 close ()V
|
|
|
|
METHOD method_54559 ensureNotClosed ()V
|
2022-11-02 10:30:38 -04:00
|
|
|
CLASS class_4574 DrawParameters
|
|
|
|
METHOD method_31957 getVertexBufferSize ()I
|
|
|
|
METHOD method_31958 getBufferSize ()I
|
|
|
|
COMMENT {@return the total size of the index buffer and the vertex buffer
|
|
|
|
COMMENT combined}
|
|
|
|
METHOD method_31961 getIndexBufferSize ()I
|
|
|
|
METHOD method_43429 getVertexBufferStart ()I
|
|
|
|
METHOD method_43430 getVertexBufferEnd ()I
|
|
|
|
METHOD method_43431 getIndexBufferStart ()I
|
|
|
|
METHOD method_43432 getIndexBufferEnd ()I
|
|
|
|
CLASS class_5594 TransparentSortingData
|
2021-02-13 12:03:45 -05:00
|
|
|
FIELD field_27358 drawMode Lnet/minecraft/class_293$class_5596;
|
|
|
|
FIELD field_27359 vertexCount I
|
2022-11-02 10:30:38 -04:00
|
|
|
FIELD field_27360 primitiveCenters [Lorg/joml/Vector3f;
|
2023-03-25 03:50:21 -04:00
|
|
|
FIELD field_43359 sorter Lnet/minecraft/class_8251;
|
2023-03-22 12:31:25 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_293$class_5596;I[Lorg/joml/Vector3f;Lnet/minecraft/class_8251;)V
|
2021-11-22 10:28:19 -05:00
|
|
|
ARG 1 drawMode
|
|
|
|
ARG 2 vertexCount
|
2022-11-02 10:30:38 -04:00
|
|
|
ARG 3 primitiveCenters
|
2023-03-25 03:50:21 -04:00
|
|
|
ARG 4 sorter
|
2022-05-17 05:57:10 -04:00
|
|
|
CLASS class_7433 BuiltBuffer
|
2022-09-03 13:01:33 -04:00
|
|
|
COMMENT An output of {@link BufferBuilder}. It contains a {@link ByteBuffer} of
|
|
|
|
COMMENT vertices, a {@code ByteBuffer} of indices if sorting has been done, and
|
|
|
|
COMMENT some information necessary to draw these data.
|
2022-05-17 05:57:10 -04:00
|
|
|
FIELD field_39064 batchOffset I
|
|
|
|
FIELD field_39065 parameters Lnet/minecraft/class_287$class_4574;
|
|
|
|
FIELD field_39066 released Z
|
|
|
|
METHOD <init> (Lnet/minecraft/class_287;ILnet/minecraft/class_287$class_4574;)V
|
|
|
|
ARG 2 batchOffset
|
|
|
|
ARG 3 parameters
|
|
|
|
METHOD method_43581 getVertexBuffer ()Ljava/nio/ByteBuffer;
|
|
|
|
METHOD method_43582 getIndexBuffer ()Ljava/nio/ByteBuffer;
|
|
|
|
METHOD method_43583 getParameters ()Lnet/minecraft/class_287$class_4574;
|
|
|
|
METHOD method_43584 isEmpty ()Z
|
|
|
|
METHOD method_43585 release ()V
|