Record Class TextureLayer
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.TextureLayer
- All Implemented Interfaces:
RenderTypeLayer
public record TextureLayer(LayerTemplateValue<net.minecraft.resources.ResourceLocation> texture, boolean blur, boolean mipmap)
extends Record
implements RenderTypeLayer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureLayer(LayerTemplateValue<net.minecraft.resources.ResourceLocation> texture, boolean blur, boolean mipmap) Creates an instance of aTextureLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddShard(VeilRenderTypeBuilder builder, Object... params) booleanblur()Returns the value of theblurrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.booleanmipmap()Returns the value of themipmaprecord component.LayerTemplateValue<net.minecraft.resources.ResourceLocation> texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TextureLayer
public TextureLayer(LayerTemplateValue<net.minecraft.resources.ResourceLocation> texture, boolean blur, boolean mipmap) Creates an instance of aTextureLayerrecord class.- Parameters:
texture- the value for thetexturerecord componentblur- the value for theblurrecord componentmipmap- the value for themipmaprecord component
-
-
Method Details
-
addShard
- Specified by:
addShardin interfaceRenderTypeLayer
-
getType
- Specified by:
getTypein 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
blur
public boolean blur()Returns the value of theblurrecord component.- Returns:
- the value of the
blurrecord component
-
mipmap
public boolean mipmap()Returns the value of themipmaprecord component.- Returns:
- the value of the
mipmaprecord component
-