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 aCompositeRenderTypeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaffectsCrumblingrecord component.intReturns the value of thebufferSizerecord component.net.minecraft.client.renderer.RenderTypecreateRenderType(String name, Object... params) final booleanIndicates whether some other object is "equal to" this one.com.mojang.blaze3d.vertex.VertexFormatformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.layers()Returns the value of thelayersrecord component.com.mojang.blaze3d.vertex.VertexFormat.Modemode()Returns the value of themoderecord component.booleanoutline()Returns the value of theoutlinerecord component.booleansort()Returns the value of thesortrecord component.final StringtoString()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 aCompositeRenderTypeDatarecord class.- Parameters:
format- the value for theformatrecord componentmode- the value for themoderecord componentbufferSize- the value for thebufferSizerecord componentaffectsCrumbling- the value for theaffectsCrumblingrecord componentsort- the value for thesortrecord componentoutline- the value for theoutlinerecord componentlayers- the value for thelayersrecord 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 theformatrecord component.- Returns:
- the value of the
formatrecord component
-
mode
public com.mojang.blaze3d.vertex.VertexFormat.Mode mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
affectsCrumbling
public boolean affectsCrumbling()Returns the value of theaffectsCrumblingrecord component.- Returns:
- the value of the
affectsCrumblingrecord component
-
sort
public boolean sort()Returns the value of thesortrecord component.- Returns:
- the value of the
sortrecord component
-
outline
public boolean outline()Returns the value of theoutlinerecord component.- Returns:
- the value of the
outlinerecord component
-
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-