Record Class TextureLayer
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.rendertype.layer.TextureLayer
- All Implemented Interfaces:
RenderTypeLayer
public record TextureLayer(net.minecraft.resources.ResourceLocation texture, boolean blur, boolean mipmap)
extends Record
implements RenderTypeLayer
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextureLayer
(net.minecraft.resources.ResourceLocation texture, boolean blur, boolean mipmap) Creates an instance of aTextureLayer
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLayer
(VeilRenderTypeBuilder builder) boolean
blur()
Returns the value of theblur
record component.final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.boolean
mipmap()
Returns the value of themipmap
record component.net.minecraft.resources.ResourceLocation
texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TextureLayer
public TextureLayer(net.minecraft.resources.ResourceLocation texture, boolean blur, boolean mipmap) Creates an instance of aTextureLayer
record class.- Parameters:
texture
- the value for thetexture
record componentblur
- the value for theblur
record componentmipmap
- the value for themipmap
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
texture
public net.minecraft.resources.ResourceLocation texture()Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-
blur
public boolean blur()Returns the value of theblur
record component.- Returns:
- the value of the
blur
record component
-
mipmap
public boolean mipmap()Returns the value of themipmap
record component.- Returns:
- the value of the
mipmap
record component
-