Record Class MeshRenderer.TextureBinding
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.render.MeshRenderer.TextureBinding
- Enclosing class:
MeshRenderer
-
Constructor Summary
ConstructorsConstructorDescriptionTextureBinding(String samplerName, @Nullable com.mojang.blaze3d.textures.GpuTextureView view, @Nullable com.mojang.blaze3d.textures.GpuSampler sampler) Creates an instance of aTextureBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static MeshRenderer.TextureBindingstatic MeshRenderer.TextureBindingof(String samplerName, com.mojang.blaze3d.textures.GpuTextureView view, com.mojang.blaze3d.textures.GpuSampler sampler) @Nullable com.mojang.blaze3d.textures.GpuSamplersampler()Returns the value of thesamplerrecord component.Returns the value of thesamplerNamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable com.mojang.blaze3d.textures.GpuTextureViewview()Returns the value of theviewrecord component.
-
Constructor Details
-
TextureBinding
public TextureBinding(String samplerName, @Nullable @Nullable com.mojang.blaze3d.textures.GpuTextureView view, @Nullable @Nullable com.mojang.blaze3d.textures.GpuSampler sampler) Creates an instance of aTextureBindingrecord class.- Parameters:
samplerName- the value for thesamplerNamerecord componentview- the value for theviewrecord componentsampler- the value for thesamplerrecord component
-
-
Method Details
-
of
public static MeshRenderer.TextureBinding of(String samplerName, com.mojang.blaze3d.textures.GpuTextureView view, com.mojang.blaze3d.textures.GpuSampler sampler) -
of
public static MeshRenderer.TextureBinding of(String samplerName, com.mojang.blaze3d.textures.GpuTextureView view) -
toString
-
hashCode
-
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). -
samplerName
Returns the value of thesamplerNamerecord component.- Returns:
- the value of the
samplerNamerecord component
-
view
@Nullable public @Nullable com.mojang.blaze3d.textures.GpuTextureView view()Returns the value of theviewrecord component.- Returns:
- the value of the
viewrecord component
-
sampler
@Nullable public @Nullable com.mojang.blaze3d.textures.GpuSampler sampler()Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-