ObjGroup
final class ObjGroup
Package: dev.joid.lib.obj.data · Module: core · Source: ObjGroup.java
A named group of triangles of an ObjModel, drawn in one batch.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
ObjGroup | create(String name) factory | Creates an empty group named name. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
this | face(ObjFace face) fluent | Adds a triangle to the group. |
void | render() | Draws every triangle of the group in one Tessellator batch, with the texture and the render state already set. |
List<ObjFace> | getFaces() | Returns the triangles, in order, as a list you cannot change. |
String | getName() | Returns the name of the group: the rest of its g or o line. |
Creation details
Section titled “Creation details”create
Section titled “create”ObjGroup create(String name) factory
Creates an empty group named name.
Method details
Section titled “Method details”this face(ObjFace face) fluent
Adds a triangle to the group.
render
Section titled “render”void render()
Draws every triangle of the group in one Tessellator batch, with the texture and the render state already set.
getFaces
Section titled “getFaces”List<ObjFace> getFaces()
Returns the triangles, in order, as a list you cannot change.
getName
Section titled “getName”String getName()
Returns the name of the group: the rest of its g or o line.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
