Package net.minecraft.client.renderer
Class RenderType
java.lang.Object
net.minecraft.client.renderer.RenderStateShard
net.minecraft.client.renderer.RenderType
- Direct Known Subclasses:
- ForgeRenderTypes.Internal,- RenderType.CompositeRenderType
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static final classstatic final class(package private) static enumNested classes/interfaces inherited from class net.minecraft.client.renderer.RenderStateShardRenderStateShard.BooleanStateShard, RenderStateShard.ColorLogicStateShard, RenderStateShard.CullStateShard, RenderStateShard.DepthTestStateShard, RenderStateShard.EmptyTextureStateShard, RenderStateShard.LayeringStateShard, RenderStateShard.LightmapStateShard, RenderStateShard.LineStateShard, RenderStateShard.MultiTextureStateShard, RenderStateShard.OffsetTexturingStateShard, RenderStateShard.OutputStateShard, RenderStateShard.OverlayStateShard, RenderStateShard.ShaderStateShard, RenderStateShard.TextureStateShard, RenderStateShard.TexturingStateShard, RenderStateShard.TransparencyStateShard, RenderStateShard.WriteMaskStateShard
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypeprivate final Optional<RenderType>private static final BiFunction<ResourceLocation,Boolean, RenderType> static final intprivate final intprivate static final intprivate static final com.google.common.collect.ImmutableList<RenderType>private intprivate static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final Function<Double,RenderType.CompositeRenderType> private static final RenderType.CompositeRenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypeprivate static final Function<ResourceLocation,RenderType> private static final BiFunction<ResourceLocation,Boolean, RenderType> private static final BiFunction<ResourceLocation,Boolean, RenderType> private static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypeprivate static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final BiFunction<ResourceLocation,Boolean, RenderType> private static final Function<ResourceLocation,RenderType> private static final BiFunction<ResourceLocation,Boolean, RenderType> private static final Function<ResourceLocation,RenderType> private final VertexFormatprivate static final RenderTypeprivate static final RenderTypeprivate static final RenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final RenderType.CompositeRenderTypeprivate static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final intprivate static final intprivate final VertexFormat.Modestatic final intprivate static final RenderTypeprivate final booleanprivate static final Function<ResourceLocation,RenderType> private static final RenderTypeprivate static final RenderTypeprivate static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> private static final Function<ResourceLocation,RenderType> static final intprivate static final RenderTypeprivate static final RenderTypeprivate static final RenderTypeprivate static final RenderTypeprivate static final RenderTypeFields inherited from class net.minecraft.client.renderer.RenderStateShardADDITIVE_TRANSPARENCY, BLOCK_SHEET, BLOCK_SHEET_MIPPED, CLOUDS_TARGET, COLOR_DEPTH_WRITE, COLOR_WRITE, CRUMBLING_TRANSPARENCY, CULL, DEFAULT_LINE, DEFAULT_TEXTURING, DEPTH_WRITE, ENTITY_GLINT_TEXTURING, EQUAL_DEPTH_TEST, GLINT_TEXTURING, GLINT_TRANSPARENCY, GREATER_DEPTH_TEST, ITEM_ENTITY_TARGET, LEQUAL_DEPTH_TEST, LIGHTMAP, LIGHTNING_TRANSPARENCY, MAIN_TARGET, MAX_ENCHANTMENT_GLINT_SPEED_MILLIS, name, NO_COLOR_LOGIC, NO_CULL, NO_DEPTH_TEST, NO_LAYERING, NO_LIGHTMAP, NO_OVERLAY, NO_SHADER, NO_TEXTURE, NO_TRANSPARENCY, OR_REVERSE_COLOR_LOGIC, OUTLINE_TARGET, OVERLAY, PARTICLES_TARGET, POLYGON_OFFSET_LAYERING, POSITION_COLOR_LIGHTMAP_SHADER, POSITION_COLOR_SHADER, POSITION_COLOR_TEX_LIGHTMAP_SHADER, POSITION_COLOR_TEX_SHADER, POSITION_SHADER, POSITION_TEX_SHADER, RENDERTYPE_ARMOR_CUTOUT_NO_CULL_SHADER, RENDERTYPE_ARMOR_ENTITY_GLINT_SHADER, RENDERTYPE_ARMOR_GLINT_SHADER, RENDERTYPE_BEACON_BEAM_SHADER, RENDERTYPE_CRUMBLING_SHADER, RENDERTYPE_CUTOUT_MIPPED_SHADER, RENDERTYPE_CUTOUT_SHADER, RENDERTYPE_END_GATEWAY_SHADER, RENDERTYPE_END_PORTAL_SHADER, RENDERTYPE_ENERGY_SWIRL_SHADER, RENDERTYPE_ENTITY_ALPHA_SHADER, RENDERTYPE_ENTITY_CUTOUT_NO_CULL_SHADER, RENDERTYPE_ENTITY_CUTOUT_NO_CULL_Z_OFFSET_SHADER, RENDERTYPE_ENTITY_CUTOUT_SHADER, RENDERTYPE_ENTITY_DECAL_SHADER, RENDERTYPE_ENTITY_GLINT_DIRECT_SHADER, RENDERTYPE_ENTITY_GLINT_SHADER, RENDERTYPE_ENTITY_NO_OUTLINE_SHADER, RENDERTYPE_ENTITY_SHADOW_SHADER, RENDERTYPE_ENTITY_SMOOTH_CUTOUT_SHADER, RENDERTYPE_ENTITY_SOLID_SHADER, RENDERTYPE_ENTITY_TRANSLUCENT_CULL_SHADER, RENDERTYPE_ENTITY_TRANSLUCENT_EMISSIVE_SHADER, RENDERTYPE_ENTITY_TRANSLUCENT_SHADER, RENDERTYPE_EYES_SHADER, RENDERTYPE_GLINT_DIRECT_SHADER, RENDERTYPE_GLINT_SHADER, RENDERTYPE_GLINT_TRANSLUCENT_SHADER, RENDERTYPE_GUI_GHOST_RECIPE_OVERLAY_SHADER, RENDERTYPE_GUI_OVERLAY_SHADER, RENDERTYPE_GUI_SHADER, RENDERTYPE_GUI_TEXT_HIGHLIGHT_SHADER, RENDERTYPE_ITEM_ENTITY_TRANSLUCENT_CULL_SHADER, RENDERTYPE_LEASH_SHADER, RENDERTYPE_LIGHTNING_SHADER, RENDERTYPE_LINES_SHADER, RENDERTYPE_OUTLINE_SHADER, RENDERTYPE_SOLID_SHADER, RENDERTYPE_TEXT_BACKGROUND_SEE_THROUGH_SHADER, RENDERTYPE_TEXT_BACKGROUND_SHADER, RENDERTYPE_TEXT_INTENSITY_SEE_THROUGH_SHADER, RENDERTYPE_TEXT_INTENSITY_SHADER, RENDERTYPE_TEXT_SEE_THROUGH_SHADER, RENDERTYPE_TEXT_SHADER, RENDERTYPE_TRANSLUCENT_MOVING_BLOCK_SHADER, RENDERTYPE_TRANSLUCENT_NO_CRUMBLING_SHADER, RENDERTYPE_TRANSLUCENT_SHADER, RENDERTYPE_TRIPWIRE_SHADER, RENDERTYPE_WATER_MASK_SHADER, setupState, TRANSLUCENT_TARGET, TRANSLUCENT_TRANSPARENCY, VIEW_OFFSET_Z_LAYERING, WEATHER_TARGET
- 
Constructor SummaryConstructorsConstructorDescriptionRenderType(String p_173178_, VertexFormat p_173179_, VertexFormat.Mode p_173180_, int p_173181_, boolean p_173182_, boolean p_173183_, Runnable p_173184_, Runnable p_173185_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic RenderTypearmorCutoutNoCull(ResourceLocation p_110432_) static RenderTypestatic RenderTypestatic RenderTypebeaconBeam(ResourceLocation p_110461_, boolean p_110462_) intbooleanstatic List<RenderType>create(String p_173216_, VertexFormat p_173217_, VertexFormat.Mode p_173218_, int p_173219_, boolean p_173220_, boolean p_173221_, RenderType.CompositeState p_173222_) (package private) static RenderType.CompositeRenderTypecreate(String p_173210_, VertexFormat p_173211_, VertexFormat.Mode p_173212_, int p_173213_, RenderType.CompositeState p_173214_) private static RenderType.CompositeRenderTypecreateArmorCutoutNoCull(String p_297971_, ResourceLocation p_300992_, boolean p_297695_) static RenderTypecreateArmorDecalCutoutNoCull(ResourceLocation p_298982_) static RenderTypecrumbling(ResourceLocation p_110495_) static RenderTypecutout()static RenderTypestatic RenderTypestatic RenderTypedebugLineStrip(double p_270166_) static RenderTypestatic RenderTypestatic RenderTypedragonExplosionAlpha(ResourceLocation p_173236_) voidend(BufferBuilder p_277996_, VertexSorting p_277677_) static RenderTypestatic RenderTypestatic RenderTypeenergySwirl(ResourceLocation p_110437_, float p_110438_, float p_110439_) static RenderTypeentityCutout(ResourceLocation p_110453_) static RenderTypeentityCutoutNoCull(ResourceLocation p_110459_) static RenderTypeentityCutoutNoCull(ResourceLocation p_110444_, boolean p_110445_) static RenderTypeentityCutoutNoCullZOffset(ResourceLocation p_110465_) static RenderTypeentityCutoutNoCullZOffset(ResourceLocation p_110449_, boolean p_110450_) static RenderTypeentityDecal(ResourceLocation p_110480_) static RenderTypestatic RenderTypestatic RenderTypeentityNoOutline(ResourceLocation p_110483_) static RenderTypeentityShadow(ResourceLocation p_110486_) static RenderTypeentitySmoothCutout(ResourceLocation p_110477_) static RenderTypeentitySolid(ResourceLocation p_110447_) static RenderTypeentityTranslucent(ResourceLocation p_110474_) static RenderTypeentityTranslucent(ResourceLocation p_110455_, boolean p_110456_) static RenderTypeentityTranslucentCull(ResourceLocation p_110471_) static RenderTypeentityTranslucentEmissive(ResourceLocation p_234339_) static RenderTypeentityTranslucentEmissive(ResourceLocation p_234336_, boolean p_234337_) static RenderTypeeyes(ResourceLocation p_110489_) format()final intReturns the unique ID of thisRenderTypefor chunk rendering purposes, or -1 if this is not a chunkRenderType.static RenderTypeglint()static RenderTypestatic RenderTypestatic RenderTypegui()static RenderTypestatic RenderTypestatic RenderTypebooleanstatic RenderTypeitemEntityTranslucentCull(ResourceLocation p_110468_) static RenderTypeleash()static RenderTypestatic RenderTypelines()static RenderTypemode()outline()static RenderTypeoutline(ResourceLocation p_110492_) static RenderTypesolid()static RenderTypetext(ResourceLocation p_110498_) static RenderTypestatic RenderTypestatic RenderTypetextIntensity(ResourceLocation p_173238_) static RenderTypetextIntensityPolygonOffset(ResourceLocation p_181447_) static RenderTypetextIntensitySeeThrough(ResourceLocation p_173241_) static RenderTypetextPolygonOffset(ResourceLocation p_181445_) static RenderTypetextSeeThrough(ResourceLocation p_110501_) toString()static RenderTypestatic RenderTypeprivate static RenderType.CompositeStatestatic RenderTypeprivate static RenderType.CompositeStatestatic RenderTypetripwire()private static RenderType.CompositeStatestatic RenderTypeMethods inherited from class net.minecraft.client.renderer.RenderStateShardclearRenderState, setupRenderState
- 
Field Details- 
BYTES_IN_INTprivate static final int BYTES_IN_INT- See Also:
 
- 
MEGABYTEprivate static final int MEGABYTE- See Also:
 
- 
BIG_BUFFER_SIZEpublic static final int BIG_BUFFER_SIZE- See Also:
 
- 
MEDIUM_BUFFER_SIZEpublic static final int MEDIUM_BUFFER_SIZE- See Also:
 
- 
SMALL_BUFFER_SIZEpublic static final int SMALL_BUFFER_SIZE- See Also:
 
- 
TRANSIENT_BUFFER_SIZEpublic static final int TRANSIENT_BUFFER_SIZE- See Also:
 
- 
SOLID
- 
CUTOUT_MIPPED
- 
CUTOUT
- 
TRANSLUCENT
- 
TRANSLUCENT_MOVING_BLOCK
- 
TRANSLUCENT_NO_CRUMBLING
- 
ARMOR_CUTOUT_NO_CULL
- 
ENTITY_SOLID
- 
ENTITY_CUTOUT
- 
ENTITY_CUTOUT_NO_CULL
- 
ENTITY_CUTOUT_NO_CULL_Z_OFFSET
- 
ITEM_ENTITY_TRANSLUCENT_CULL
- 
ENTITY_TRANSLUCENT_CULL
- 
ENTITY_TRANSLUCENT
- 
ENTITY_TRANSLUCENT_EMISSIVE
- 
ENTITY_SMOOTH_CUTOUT
- 
BEACON_BEAM
- 
ENTITY_DECAL
- 
ENTITY_NO_OUTLINE
- 
ENTITY_SHADOW
- 
DRAGON_EXPLOSION_ALPHA
- 
EYES
- 
LEASH
- 
WATER_MASK
- 
ARMOR_GLINT
- 
ARMOR_ENTITY_GLINT
- 
GLINT_TRANSLUCENT
- 
GLINT
- 
GLINT_DIRECT
- 
ENTITY_GLINT
- 
ENTITY_GLINT_DIRECT
- 
CRUMBLING
- 
TEXT
- 
TEXT_BACKGROUND
- 
TEXT_INTENSITY
- 
TEXT_POLYGON_OFFSET
- 
TEXT_INTENSITY_POLYGON_OFFSET
- 
TEXT_SEE_THROUGH
- 
TEXT_BACKGROUND_SEE_THROUGH
- 
TEXT_INTENSITY_SEE_THROUGH
- 
LIGHTNING
- 
TRIPWIRE
- 
END_PORTAL
- 
END_GATEWAY
- 
LINES
- 
LINE_STRIP
- 
DEBUG_LINE_STRIP
- 
DEBUG_FILLED_BOX
- 
DEBUG_QUADS
- 
DEBUG_SECTION_QUADS
- 
GUI
- 
GUI_OVERLAY
- 
GUI_TEXT_HIGHLIGHT
- 
GUI_GHOST_RECIPE_OVERLAY
- 
CHUNK_BUFFER_LAYERS
- 
format
- 
mode
- 
bufferSizeprivate final int bufferSize
- 
affectsCrumblingprivate final boolean affectsCrumbling
- 
sortOnUploadprivate final boolean sortOnUpload
- 
asOptional
- 
chunkLayerIdprivate int chunkLayerId
 
- 
- 
Constructor Details- 
RenderTypepublic RenderType(String p_173178_, VertexFormat p_173179_, VertexFormat.Mode p_173180_, int p_173181_, boolean p_173182_, boolean p_173183_, Runnable p_173184_, Runnable p_173185_) 
 
- 
- 
Method Details- 
solid
- 
cutoutMipped
- 
cutout
- 
translucentStateprivate static RenderType.CompositeState translucentState(RenderStateShard.ShaderStateShard p_173208_) 
- 
translucent
- 
translucentMovingBlockState
- 
translucentMovingBlock
- 
translucentNoCrumbling
- 
createArmorCutoutNoCullprivate static RenderType.CompositeRenderType createArmorCutoutNoCull(String p_297971_, ResourceLocation p_300992_, boolean p_297695_) 
- 
armorCutoutNoCull
- 
createArmorDecalCutoutNoCull
- 
entitySolid
- 
entityCutout
- 
entityCutoutNoCull
- 
entityCutoutNoCull
- 
entityCutoutNoCullZOffset
- 
entityCutoutNoCullZOffset
- 
itemEntityTranslucentCull
- 
entityTranslucentCull
- 
entityTranslucent
- 
entityTranslucent
- 
entityTranslucentEmissive
- 
entityTranslucentEmissive
- 
entitySmoothCutout
- 
beaconBeam
- 
entityDecal
- 
entityNoOutline
- 
entityShadow
- 
dragonExplosionAlpha
- 
eyes
- 
energySwirl
- 
leash
- 
waterMask
- 
outline
- 
armorGlint
- 
armorEntityGlint
- 
glintTranslucent
- 
glint
- 
glintDirect
- 
entityGlint
- 
entityGlintDirect
- 
crumbling
- 
text
- 
textBackground
- 
textIntensity
- 
textPolygonOffset
- 
textIntensityPolygonOffset
- 
textSeeThrough
- 
textBackgroundSeeThrough
- 
textIntensitySeeThrough
- 
lightning
- 
tripwireState
- 
tripwire
- 
endPortal
- 
endGateway
- 
lines
- 
lineStrip
- 
debugLineStrip
- 
debugFilledBox
- 
debugQuads
- 
debugSectionQuads
- 
gui
- 
guiOverlay
- 
guiTextHighlight
- 
guiGhostRecipeOverlay
- 
createstatic RenderType.CompositeRenderType create(String p_173210_, VertexFormat p_173211_, VertexFormat.Mode p_173212_, int p_173213_, RenderType.CompositeState p_173214_) 
- 
createpublic static RenderType.CompositeRenderType create(String p_173216_, VertexFormat p_173217_, VertexFormat.Mode p_173218_, int p_173219_, boolean p_173220_, boolean p_173221_, RenderType.CompositeState p_173222_) 
- 
end
- 
toString- Overrides:
- toStringin class- RenderStateShard
 
- 
chunkBufferLayers
- 
bufferSizepublic int bufferSize()
- 
format
- 
mode
- 
outline
- 
isOutlinepublic boolean isOutline()
- 
affectsCrumblingpublic boolean affectsCrumbling()
- 
canConsolidateConsecutiveGeometrypublic boolean canConsolidateConsecutiveGeometry()
- 
asOptional
- 
getChunkLayerIdpublic final int getChunkLayerId()Returns the unique ID of thisRenderTypefor chunk rendering purposes, or -1 if this is not a chunkRenderType.- Returns:
- the unique ID of this RenderTypefor chunk rendering purposes, or -1 if this is not a chunkRenderType
 
 
-