Package net.minecraft.client.gui.font
Record Class GlyphRenderTypes
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.GlyphRenderTypes
public record GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RenderType
The field for thenormal
record component.private final RenderType
The field for thepolygonOffset
record component.private final RenderType
The field for theseeThrough
record component. -
Constructor Summary
ConstructorDescriptionGlyphRenderTypes
(RenderType normal, RenderType seeThrough, RenderType polygonOffset) Creates an instance of aGlyphRenderTypes
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlyphRenderTypes
createForColorTexture
(ResourceLocation p_285486_) static GlyphRenderTypes
createForIntensityTexture
(ResourceLocation p_285411_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.normal()
Returns the value of thenormal
record component.Returns the value of thepolygonOffset
record component.Returns the value of theseeThrough
record component.select
(Font.DisplayMode p_285259_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
normal
The field for thenormal
record component. -
seeThrough
The field for theseeThrough
record component. -
polygonOffset
The field for thepolygonOffset
record component.
-
-
Constructor Details
-
GlyphRenderTypes
Creates an instance of aGlyphRenderTypes
record class.- Parameters:
normal
- the value for thenormal
record componentseeThrough
- the value for theseeThrough
record componentpolygonOffset
- the value for thepolygonOffset
record component
-
-
Method Details
-
createForIntensityTexture
-
createForColorTexture
-
select
-
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)
. -
normal
Returns the value of thenormal
record component.- Returns:
- the value of the
normal
record component
-
seeThrough
Returns the value of theseeThrough
record component.- Returns:
- the value of the
seeThrough
record component
-
polygonOffset
Returns the value of thepolygonOffset
record component.- Returns:
- the value of the
polygonOffset
record component
-