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, RenderPipeline guiPipeline, RenderType normalBlur, RenderType seeThroughBlur, RenderType polygonOffsetBlur)
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 thenormalBlurrecord component.private final RenderTypeThe field for thepolygonOffsetrecord component.private final RenderTypeThe field for thepolygonOffsetBlurrecord component.private final RenderTypeThe field for theseeThroughrecord component.private final RenderTypeThe field for theseeThroughBlurrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline) Deprecated.GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline, RenderType normalBlur, RenderType seeThroughBlur, RenderType polygonOffsetBlur) 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 thenormalBlurrecord component.Returns the value of thepolygonOffsetrecord component.Returns the value of thepolygonOffsetBlurrecord component.Returns the value of theseeThroughrecord component.Returns the value of theseeThroughBlurrecord component.select(Font.DisplayMode pDisplayMode) select(Font.DisplayMode pDisplayMode, boolean blur) Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur settingfinal 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. -
normalBlur
The field for thenormalBlurrecord component. -
seeThroughBlur
The field for theseeThroughBlurrecord component. -
polygonOffsetBlur
The field for thepolygonOffsetBlurrecord component.
-
-
Constructor Details
-
GlyphRenderTypes
@Deprecated public GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline) -
GlyphRenderTypes
public GlyphRenderTypes(RenderType normal, RenderType seeThrough, RenderType polygonOffset, RenderPipeline guiPipeline, RenderType normalBlur, RenderType seeThroughBlur, RenderType polygonOffsetBlur) 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 componentnormalBlur- the value for thenormalBlurrecord componentseeThroughBlur- the value for theseeThroughBlurrecord componentpolygonOffsetBlur- the value for thepolygonOffsetBlurrecord component
-
-
Method Details
-
createForIntensityTexture
-
createForColorTexture
-
select
-
select
Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur setting -
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 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
-
normalBlur
Returns the value of thenormalBlurrecord component.- Returns:
- the value of the
normalBlurrecord component
-
seeThroughBlur
Returns the value of theseeThroughBlurrecord component.- Returns:
- the value of the
seeThroughBlurrecord component
-
polygonOffsetBlur
Returns the value of thepolygonOffsetBlurrecord component.- Returns:
- the value of the
polygonOffsetBlurrecord component
-
GlyphRenderTypes(net.minecraft.client.renderer.RenderType,net.minecraft.client.renderer.RenderType,net.minecraft.client.renderer.RenderType,com.mojang.blaze3d.pipeline.RenderPipeline,net.minecraft.client.renderer.RenderType,net.minecraft.client.renderer.RenderType,net.minecraft.client.renderer.RenderType)instead