Package net.minecraft.client.renderer
Class RenderType
java.lang.Object
net.minecraft.client.renderer.RenderStateShard
net.minecraft.client.renderer.RenderType
- Direct Known Subclasses:
RenderType.CompositeRenderType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classstatic final classstatic enumNested classes/interfaces inherited from class net.minecraft.client.renderer.RenderStateShard
RenderStateShard.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 Summary
FieldsModifier and TypeFieldDescriptionfinal booleanstatic final Function<ResourceLocation, RenderType> static final RenderTypestatic final Function<ResourceLocation, RenderType> static final BiFunction<ResourceLocation, Boolean, RenderType> static final intstatic final Function<ResourceLocation, RenderType> final intstatic final Function<ResourceLocation, RenderType> static final ImmutableList<RenderType> private intstatic final RenderTypestatic final RenderTypestatic final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final RenderTypestatic final RenderTypestatic final RenderType.CompositeRenderTypestatic final Function<Double, RenderType.CompositeRenderType> static final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final Function<ResourceLocation, RenderType> static final RenderTypestatic final RenderTypestatic final RenderTypestatic final RenderTypestatic final RenderTypestatic final Function<ResourceLocation, RenderType> static final BiFunction<ResourceLocation, Boolean, RenderType> static final BiFunction<ResourceLocation, Boolean, RenderType> static final Function<ResourceLocation, RenderType> static final RenderTypestatic final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final BiFunction<ResourceLocation, Boolean, RenderType> static final BiFunction<ResourceLocation, Boolean, RenderType> static final Function<ResourceLocation, RenderType> static final RenderTypefinal VertexFormatstatic final RenderTypestatic final RenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final Function<ResourceLocation, RenderType> static final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final RenderTypestatic final RenderTypestatic final RenderType.CompositeRenderTypestatic final RenderType.CompositeRenderTypestatic final intfinal VertexFormat.Modestatic final RenderType.CompositeRenderTypestatic final Function<ResourceLocation, RenderType> static final RenderType.CompositeRenderTypestatic final RenderTypestatic final intstatic final RenderTypefinal booleanstatic final RenderTypestatic final RenderTypestatic final Function<ResourceLocation, RenderType> static final RenderTypestatic final RenderTypestatic final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final intstatic final RenderTypestatic final RenderTypestatic final Function<ResourceLocation, RenderType> static final RenderTypestatic final Function<ResourceLocation, RenderType> static final RenderTypestatic final Function<ResourceLocation, RenderType> static final Function<ResourceLocation, RenderType> static final RenderTypestatic final RenderTypeFields inherited from class net.minecraft.client.renderer.RenderStateShard
ADDITIVE_TRANSPARENCY, BLOCK_SHEET, BLOCK_SHEET_MIPPED, CLOUDS_TARGET, COLOR_DEPTH_WRITE, COLOR_WRITE, CROSSHAIR_TRANSPARENCY, 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, MOJANG_LOGO_TRANSPARENCY, name, NAUSEA_OVERLAY_TRANSPARENCY, 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, OVERLAY_TRANSPARENCY, PARTICLE_SHADER, PARTICLES_TARGET, POLYGON_OFFSET_LAYERING, POSITION_COLOR_LIGHTMAP_SHADER, POSITION_COLOR_SHADER, POSITION_COLOR_TEX_LIGHTMAP_SHADER, POSITION_SHADER, POSITION_TEX_SHADER, POSITION_TEXTURE_COLOR_SHADER, RENDERTYPE_ARMOR_CUTOUT_NO_CULL_SHADER, RENDERTYPE_ARMOR_ENTITY_GLINT_SHADER, RENDERTYPE_ARMOR_TRANSLUCENT_SHADER, RENDERTYPE_BEACON_BEAM_SHADER, RENDERTYPE_BREEZE_WIND_SHADER, RENDERTYPE_CLOUDS_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_SHADER, RENDERTYPE_ENTITY_NO_OUTLINE_SHADER, RENDERTYPE_ENTITY_SHADOW_SHADER, RENDERTYPE_ENTITY_SMOOTH_CUTOUT_SHADER, RENDERTYPE_ENTITY_SOLID_SHADER, RENDERTYPE_ENTITY_TRANSLUCENT_EMISSIVE_SHADER, RENDERTYPE_ENTITY_TRANSLUCENT_SHADER, RENDERTYPE_EYES_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_SHADER, RENDERTYPE_TRIPWIRE_SHADER, RENDERTYPE_WATER_MASK_SHADER, TRANSLUCENT_TARGET, TRANSLUCENT_TRANSPARENCY, VIEW_OFFSET_Z_LAYERING, VIEW_OFFSET_Z_LAYERING_FORWARD, VIGNETTE_TRANSPARENCY, WEATHER_TARGET, WORLD_BORDER_LAYERING -
Constructor Summary
ConstructorsConstructorDescriptionRenderType(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, boolean pAffectsCrumbling, boolean pSortOnUpload, Runnable pSetupState, Runnable pClearState) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RenderTypearmorCutoutNoCull(ResourceLocation pLocation) static RenderTypestatic RenderTypestatic RenderTypebeaconBeam(ResourceLocation pLocation, boolean pColorFlag) static RenderTypeblockScreenEffect(ResourceLocation pTexture) static RenderTypebreezeEyes(ResourceLocation pLocation) static RenderTypebreezeWind(ResourceLocation pLocation, float pU, float pV) intbooleanstatic RenderTypecelestial(ResourceLocation pTexture) static List<RenderType> static RenderTypeclouds()static RenderTypecreate(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, boolean pAffectsCrumbling, boolean pSortOnUpload, RenderType.CompositeState pState) create(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, RenderType.CompositeState pState) private static RenderType.CompositeRenderTypecreateArmorCutoutNoCull(String pName, ResourceLocation pId, boolean pEqualDepthTest) static RenderTypeprivate static RenderType.CompositeRenderTypecreateClouds(boolean pColor, boolean pCull) private static Function<ResourceLocation, RenderType> createWeather(boolean pDepthWrite) private static RenderTypecreateWorldBorder(boolean pDepthWrite) static RenderTypecrosshair(ResourceLocation pLocation) static RenderTypecrumbling(ResourceLocation pLocation) static RenderTypecutout()static RenderTypestatic RenderTypestatic RenderTypedebugLineStrip(double pWidth) static RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypevoidstatic RenderTypestatic RenderTypestatic RenderTypeendSky()static RenderTypeenergySwirl(ResourceLocation pLocation, float pU, float pV) static RenderTypeentityCutout(ResourceLocation pLocation) static RenderTypeentityCutoutNoCull(ResourceLocation pLocation) static RenderTypeentityCutoutNoCull(ResourceLocation pLocation, boolean pOutline) static RenderTypeentityCutoutNoCullZOffset(ResourceLocation pLocation) static RenderTypeentityCutoutNoCullZOffset(ResourceLocation pLocation, boolean pOutline) static RenderTypeentityDecal(ResourceLocation pLocation) static RenderTypestatic RenderTypeentityNoOutline(ResourceLocation pLocation) static RenderTypeentityShadow(ResourceLocation pLocation) static RenderTypeentitySmoothCutout(ResourceLocation pLocation) static RenderTypeentitySolid(ResourceLocation pLocation) static RenderTypeentitySolidZOffsetForward(ResourceLocation pLocation) static RenderTypeentityTranslucent(ResourceLocation pLocation) static RenderTypeentityTranslucent(ResourceLocation pLocation, boolean pOutline) static RenderTypeentityTranslucentEmissive(ResourceLocation pLocation) static RenderTypeentityTranslucentEmissive(ResourceLocation pLocation, boolean pOutline) static RenderTypeeyes(ResourceLocation pLocation) static RenderTypefireScreenEffect(ResourceLocation pTexture) static RenderTypeformat()final intReturns the unique ID of thisRenderTypefor chunk rendering purposes, or -1 if this is not a chunkRenderType.static RenderTypeglint()static RenderTypestatic RenderTypegui()static RenderTypestatic RenderTypestatic RenderTypeguiOpaqueTexturedBackground(ResourceLocation pLocation) static RenderTypestatic RenderTypestatic RenderTypeguiTextured(ResourceLocation pLocation) static RenderTypeguiTexturedOverlay(ResourceLocation pLocation) booleanstatic RenderTypeitemEntityTranslucentCull(ResourceLocation pLocation) static RenderTypeleash()static RenderTypestatic RenderTypelines()static RenderTypemode()static RenderTypestatic RenderTypeopaqueParticle(ResourceLocation pTexture) outline()static RenderTypeoutline(ResourceLocation pLocation) static RenderTypestatic RenderTypesky()static RenderTypesolid()booleanstatic RenderTypestars()static RenderTypestatic RenderTypetext(ResourceLocation pLocation) static RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypestatic RenderTypetextSeeThrough(ResourceLocation pLocation) toString()static RenderTypestatic RenderTypeprivate static RenderType.CompositeStatestatic RenderTypetranslucentParticle(ResourceLocation pTexture) private static RenderType.CompositeStatestatic RenderTypetripwire()private static RenderType.CompositeStatestatic RenderTypevignette(ResourceLocation pLocation) static RenderTypestatic RenderTypeweather(ResourceLocation pTexture, boolean pDepthWrite) static RenderTypeworldBorder(boolean pDepthWrite) Methods inherited from class net.minecraft.client.renderer.RenderStateShard
clearRenderState, setupGlintTexturing, setupRenderState
-
Field Details
-
MEGABYTE
public static final int MEGABYTE- See Also:
-
BIG_BUFFER_SIZE
public static final int BIG_BUFFER_SIZE- See Also:
-
SMALL_BUFFER_SIZE
public static final int SMALL_BUFFER_SIZE- See Also:
-
TRANSIENT_BUFFER_SIZE
public static final int TRANSIENT_BUFFER_SIZE- See Also:
-
SOLID
-
CUTOUT_MIPPED
-
CUTOUT
-
TRANSLUCENT
-
TRANSLUCENT_MOVING_BLOCK
-
ARMOR_CUTOUT_NO_CULL
-
ARMOR_TRANSLUCENT
-
ENTITY_SOLID
-
ENTITY_SOLID_Z_OFFSET_FORWARD
-
ENTITY_CUTOUT
-
ENTITY_CUTOUT_NO_CULL
-
ENTITY_CUTOUT_NO_CULL_Z_OFFSET
-
ITEM_ENTITY_TRANSLUCENT_CULL
-
ENTITY_TRANSLUCENT
-
ENTITY_TRANSLUCENT_EMISSIVE
-
ENTITY_SMOOTH_CUTOUT
-
BEACON_BEAM
-
ENTITY_DECAL
-
ENTITY_NO_OUTLINE
-
ENTITY_SHADOW
-
DRAGON_EXPLOSION_ALPHA
-
EYES
public static final BiFunction<ResourceLocation,RenderStateShard.TransparencyStateShard, EYESRenderType> -
LEASH
-
WATER_MASK
-
ARMOR_ENTITY_GLINT
-
GLINT_TRANSLUCENT
-
GLINT
-
ENTITY_GLINT
-
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
-
DRAGON_RAYS
-
DRAGON_RAYS_DEPTH
-
TRIPWIRE
-
END_PORTAL
-
END_GATEWAY
-
FLAT_CLOUDS
-
CLOUDS
-
CLOUDS_DEPTH_ONLY
-
LINES
-
SECONDARY_BLOCK_OUTLINE
-
LINE_STRIP
-
DEBUG_LINE_STRIP
-
DEBUG_FILLED_BOX
-
DEBUG_QUADS
-
DEBUG_TRIANGLE_FAN
-
DEBUG_STRUCTURE_QUADS
-
DEBUG_SECTION_QUADS
-
WORLD_BORDER_NO_DEPTH_WRITE
-
WORLD_BORDER_DEPTH_WRITE
-
OPAQUE_PARTICLE
-
TRANSLUCENT_PARTICLE
-
WEATHER_DEPTH_WRITE
-
WEATHER_NO_DEPTH_WRITE
-
SKY
-
END_SKY
-
SUNRISE_SUNSET
-
STARS
-
CELESTIAL
-
BLOCK_SCREEN_EFFECT
-
FIRE_SCREEN_EFFECT
-
GUI
-
GUI_OVERLAY
-
GUI_TEXTURED_OVERLAY
-
GUI_OPAQUE_TEXTURED_BACKGROUND
-
GUI_NAUSEA_OVERLAY
-
GUI_TEXT_HIGHLIGHT
-
GUI_GHOST_RECIPE_OVERLAY
-
GUI_TEXTURED
-
VIGNETTE
-
CROSSHAIR
-
MOJANG_LOGO
-
CHUNK_BUFFER_LAYERS
-
format
-
mode
-
bufferSize
public final int bufferSize -
affectsCrumbling
public final boolean affectsCrumbling -
sortOnUpload
public final boolean sortOnUpload -
chunkLayerId
private int chunkLayerId
-
-
Constructor Details
-
RenderType
public RenderType(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, boolean pAffectsCrumbling, boolean pSortOnUpload, Runnable pSetupState, Runnable pClearState)
-
-
Method Details
-
solid
-
cutoutMipped
-
cutout
-
translucentState
-
translucent
-
translucentMovingBlockState
-
translucentMovingBlock
-
createArmorCutoutNoCull
private static RenderType.CompositeRenderType createArmorCutoutNoCull(String pName, ResourceLocation pId, boolean pEqualDepthTest) -
armorCutoutNoCull
-
createArmorDecalCutoutNoCull
-
armorTranslucent
-
entitySolid
-
entitySolidZOffsetForward
-
entityCutout
-
entityCutoutNoCull
-
entityCutoutNoCull
-
entityCutoutNoCullZOffset
-
entityCutoutNoCullZOffset
-
itemEntityTranslucentCull
-
entityTranslucent
-
entityTranslucent
-
entityTranslucentEmissive
-
entityTranslucentEmissive
-
entitySmoothCutout
-
beaconBeam
-
entityDecal
-
entityNoOutline
-
entityShadow
-
dragonExplosionAlpha
-
eyes
-
breezeEyes
-
breezeWind
-
energySwirl
-
leash
-
waterMask
-
outline
-
armorEntityGlint
-
glintTranslucent
-
glint
-
entityGlint
-
crumbling
-
text
-
textBackground
-
textIntensity
-
textPolygonOffset
-
textIntensityPolygonOffset
-
textSeeThrough
-
textBackgroundSeeThrough
-
textIntensitySeeThrough
-
lightning
-
dragonRays
-
dragonRaysDepth
-
tripwireState
-
tripwire
-
endPortal
-
endGateway
-
createClouds
-
flatClouds
-
clouds
-
cloudsDepthOnly
-
lines
-
secondaryBlockOutline
-
lineStrip
-
debugLineStrip
-
debugFilledBox
-
debugQuads
-
debugTriangleFan
-
debugStructureQuads
-
debugSectionQuads
-
createWorldBorder
-
worldBorder
-
opaqueParticle
-
translucentParticle
-
createWeather
-
weather
-
sky
-
endSky
-
sunriseSunset
-
stars
-
celestial
-
blockScreenEffect
-
fireScreenEffect
-
gui
-
guiOverlay
-
guiTexturedOverlay
-
guiOpaqueTexturedBackground
-
guiNauseaOverlay
-
guiTextHighlight
-
guiGhostRecipeOverlay
-
guiTextured
-
vignette
-
crosshair
-
mojangLogo
-
create
public static RenderType.CompositeRenderType create(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, RenderType.CompositeState pState) -
create
public static RenderType.CompositeRenderType create(String pName, VertexFormat pFormat, VertexFormat.Mode pMode, int pBufferSize, boolean pAffectsCrumbling, boolean pSortOnUpload, RenderType.CompositeState pState) -
draw
-
toString
- Overrides:
toStringin classRenderStateShard
-
chunkBufferLayers
-
bufferSize
public int bufferSize() -
format
-
mode
-
outline
-
isOutline
public boolean isOutline() -
affectsCrumbling
public boolean affectsCrumbling() -
canConsolidateConsecutiveGeometry
public boolean canConsolidateConsecutiveGeometry() -
sortOnUpload
public boolean sortOnUpload() -
getChunkLayerId
public 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
-