Record Class CompositeRenderTypeData
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.CompositeRenderTypeData
public record CompositeRenderTypeData(com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, List<RenderTypeLayer[]> layers)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CompositeRenderTypeData> -
Constructor Summary
ConstructorsConstructorDescriptionCompositeRenderTypeData
(com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, List<RenderTypeLayer[]> layers) Creates an instance of aCompositeRenderTypeData
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theaffectsCrumbling
record component.int
Returns the value of thebufferSize
record component.net.minecraft.client.renderer.RenderType
createRenderType
(String name, Object... params) final boolean
Indicates whether some other object is "equal to" this one.com.mojang.blaze3d.vertex.VertexFormat
format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.layers()
Returns the value of thelayers
record component.com.mojang.blaze3d.vertex.VertexFormat.Mode
mode()
Returns the value of themode
record component.boolean
outline()
Returns the value of theoutline
record component.boolean
sort()
Returns the value of thesort
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
CompositeRenderTypeData
public CompositeRenderTypeData(com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, List<RenderTypeLayer[]> layers) Creates an instance of aCompositeRenderTypeData
record class.- Parameters:
format
- the value for theformat
record componentmode
- the value for themode
record componentbufferSize
- the value for thebufferSize
record componentaffectsCrumbling
- the value for theaffectsCrumbling
record componentsort
- the value for thesort
record componentoutline
- the value for theoutline
record componentlayers
- the value for thelayers
record component
-
-
Method Details
-
createRenderType
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
format
public com.mojang.blaze3d.vertex.VertexFormat format()Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
mode
public com.mojang.blaze3d.vertex.VertexFormat.Mode mode()Returns the value of themode
record component.- Returns:
- the value of the
mode
record component
-
bufferSize
public int bufferSize()Returns the value of thebufferSize
record component.- Returns:
- the value of the
bufferSize
record component
-
affectsCrumbling
public boolean affectsCrumbling()Returns the value of theaffectsCrumbling
record component.- Returns:
- the value of the
affectsCrumbling
record component
-
sort
public boolean sort()Returns the value of thesort
record component.- Returns:
- the value of the
sort
record component
-
outline
public boolean outline()Returns the value of theoutline
record component.- Returns:
- the value of the
outline
record component
-
layers
Returns the value of thelayers
record component.- Returns:
- the value of the
layers
record component
-