Record Class CompositeRenderTypeData
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.CompositeRenderTypeData
public record CompositeRenderTypeData(@Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, RenderTypeLayer[] layers)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompositeRenderTypeData>
-
Constructor Summary
ConstructorDescriptionCompositeRenderTypeData
(@Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, 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) 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.@Nullable String
inject()
Returns the value of theinject
record component.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.int
priority()
Returns the value of thepriority
record component.boolean
replace()
Returns the value of thereplace
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(@Nullable @Nullable String inject, int priority, boolean replace, com.mojang.blaze3d.vertex.VertexFormat format, com.mojang.blaze3d.vertex.VertexFormat.Mode mode, int bufferSize, boolean affectsCrumbling, boolean sort, boolean outline, RenderTypeLayer[] layers) Creates an instance of aCompositeRenderTypeData
record class.- Parameters:
inject
- the value for theinject
record componentpriority
- the value for thepriority
record componentreplace
- the value for thereplace
record componentformat
- 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 '=='. -
inject
Returns the value of theinject
record component.- Returns:
- the value of the
inject
record component
-
priority
public int priority()Returns the value of thepriority
record component.- Returns:
- the value of the
priority
record component
-
replace
public boolean replace()Returns the value of thereplace
record component.- Returns:
- the value of the
replace
record component
-
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
-