Record Class GlyphRenderTypes
java.lang.Object
java.lang.Record
net.minecraft.client.gui.font.GlyphRenderTypes
public record GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderPipelineThe field for theguiPipelinerecord component.private final RenderTypeThe field for thenormalrecord component.private final RenderTypeThe field for thepolygonOffsetrecord component.private final RenderTypeThe field for theseeThroughrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline) Creates an instance of aGlyphRenderTypesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlyphRenderTypesstatic GlyphRenderTypesfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theguiPipelinerecord component.final inthashCode()Returns a hash code value for this object.normal()Returns the value of thenormalrecord component.Returns the value of thepolygonOffsetrecord component.Returns the value of theseeThroughrecord component.select(Font.DisplayMode mode) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
normal
The field for thenormalrecord component. -
seeThrough
The field for theseeThroughrecord component. -
polygonOffset
The field for thepolygonOffsetrecord component. -
guiPipeline
The field for theguiPipelinerecord component.
-
-
Constructor Details
-
GlyphRenderTypes
public GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline) Creates an instance of aGlyphRenderTypesrecord class.- Parameters:
normal- the value for thenormalrecord componentseeThrough- the value for theseeThroughrecord componentpolygonOffset- the value for thepolygonOffsetrecord componentguiPipeline- the value for theguiPipelinerecord component
-
-
Method Details
-
createForGrayscaleTexture
-
createForColorTexture
-
select
-
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). -
normal
Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
seeThrough
Returns the value of theseeThroughrecord component.- Returns:
- the value of the
seeThroughrecord component
-
polygonOffset
Returns the value of thepolygonOffsetrecord component.- Returns:
- the value of the
polygonOffsetrecord component
-
guiPipeline
Returns the value of theguiPipelinerecord component.- Returns:
- the value of the
guiPipelinerecord component
-