Record Class VeilShaderLayer
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.VeilShaderLayer
- All Implemented Interfaces:
RenderTypeLayer
public record VeilShaderLayer(net.minecraft.resources.ResourceLocation shaderId)
extends Record
implements RenderTypeLayer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVeilShaderLayer
(net.minecraft.resources.ResourceLocation shaderId) Creates an instance of aVeilShaderLayer
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.net.minecraft.resources.ResourceLocation
shaderId()
Returns the value of theshaderId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
VeilShaderLayer
public VeilShaderLayer(net.minecraft.resources.ResourceLocation shaderId) Creates an instance of aVeilShaderLayer
record class.- Parameters:
shaderId
- the value for theshaderId
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)
. -
shaderId
public net.minecraft.resources.ResourceLocation shaderId()Returns the value of theshaderId
record component.- Returns:
- the value of the
shaderId
record component
-