Record Class VanillaShaderLayer
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.VanillaShaderLayer
- All Implemented Interfaces:
RenderTypeLayer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVanillaShaderLayer
(String shaderName) Creates an instance of aVanillaShaderLayer
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayer
(VeilRenderTypeBuilder builder) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.Returns the value of theshaderName
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
VanillaShaderLayer
Creates an instance of aVanillaShaderLayer
record class.- Parameters:
shaderName
- the value for theshaderName
record component
-
-
Method Details
-
addLayer
- Specified by:
addLayer
in interfaceRenderTypeLayer
-
getType
- Specified by:
getType
in interfaceRenderTypeLayer
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
shaderName
Returns the value of theshaderName
record component.- Returns:
- the value of the
shaderName
record component
-