Package net.minecraft.client.render
Class RenderLayer
java.lang.Object
net.minecraft.client.render.RenderPhase
net.minecraft.client.render.RenderLayer
- Direct Known Subclasses:
RenderLayer.MultiPhase
@Environment(CLIENT) public abstract class RenderLayer extends RenderPhase
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RenderLayer.MultiPhase
static class
RenderLayer.MultiPhaseParameters
(package private) static class
RenderLayer.OutlineMode
Nested classes/interfaces inherited from class net.minecraft.client.render.RenderPhase
RenderPhase.Alpha, RenderPhase.Cull, RenderPhase.DepthTest, RenderPhase.DiffuseLighting, RenderPhase.Fog, RenderPhase.Layering, RenderPhase.Lightmap, RenderPhase.LineWidth, RenderPhase.OffsetTexturing, RenderPhase.Overlay, RenderPhase.PortalTexturing, RenderPhase.ShadeModel, RenderPhase.Target, RenderPhase.Texture, RenderPhase.Texturing, RenderPhase.Toggleable, RenderPhase.Transparency, RenderPhase.WriteMaskState
-
Field Summary
Fields Modifier and Type Field Description private static RenderLayer
ARMOR_ENTITY_GLINT
private static RenderLayer
ARMOR_GLINT
private static RenderLayer
CUTOUT
private static RenderLayer
CUTOUT_MIPPED
private static RenderLayer
DIRECT_ENTITY_GLINT
private static RenderLayer
DIRECT_GLINT
private int
drawMode
private static RenderLayer
ENTITY_GLINT
private int
expectedBufferSize
private static RenderLayer
GLINT
private static RenderLayer
GLINT_TRANSLUCENT
private boolean
hasCrumbling
private static RenderLayer
LEASH
private static RenderLayer
LIGHTNING
static RenderLayer.MultiPhase
LINES
private Optional<RenderLayer>
optionalThis
private static RenderLayer
SOLID
private boolean
translucent
private static RenderLayer
TRANSLUCENT
private static RenderLayer
TRANSLUCENT_MOVING_BLOCK
private static RenderLayer
TRANSLUCENT_NO_CRUMBLING
private static RenderLayer
TRIPWIRE
private VertexFormat
vertexFormat
private static RenderLayer
WATER_MASK
Fields inherited from class net.minecraft.client.render.RenderPhase
ADDITIVE_TRANSPARENCY, ALL_MASK, ALWAYS_DEPTH_TEST, BLACK_FOG, BLOCK_ATLAS_TEXTURE, CLOUDS_TARGET, COLOR_MASK, CRUMBLING_TRANSPARENCY, DEFAULT_TEXTURING, DEPTH_MASK, DISABLE_CULLING, DISABLE_DIFFUSE_LIGHTING, DISABLE_LIGHTMAP, DISABLE_OVERLAY_COLOR, ENABLE_CULLING, ENABLE_DIFFUSE_LIGHTING, ENABLE_LIGHTMAP, ENABLE_OVERLAY_COLOR, ENTITY_GLINT_TEXTURING, EQUAL_DEPTH_TEST, FOG, FULL_LINE_WIDTH, GLINT_TEXTURING, GLINT_TRANSPARENCY, HALF_ALPHA, ITEM_TARGET, LEQUAL_DEPTH_TEST, LIGHTNING_TRANSPARENCY, MAIN_TARGET, MIPMAP_BLOCK_ATLAS_TEXTURE, name, NO_FOG, NO_LAYERING, NO_TEXTURE, NO_TRANSPARENCY, ONE_TENTH_ALPHA, OUTLINE_TARGET, OUTLINE_TEXTURING, PARTICLES_TARGET, POLYGON_OFFSET_LAYERING, SHADE_MODEL, SMOOTH_SHADE_MODEL, TRANSLUCENT_TARGET, TRANSLUCENT_TRANSPARENCY, VIEW_OFFSET_Z_LAYERING, WEATHER_TARGET, ZERO_ALPHA
-
Constructor Summary
Constructors Constructor Description RenderLayer(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, Runnable startAction, Runnable endAction)
-
Method Summary
Methods inherited from class net.minecraft.client.render.RenderPhase
endDrawing, equals, hashCode, startDrawing
-
Field Details
-
SOLID
-
CUTOUT_MIPPED
-
CUTOUT
-
TRANSLUCENT
-
TRANSLUCENT_MOVING_BLOCK
-
TRANSLUCENT_NO_CRUMBLING
-
LEASH
-
WATER_MASK
-
ARMOR_GLINT
-
ARMOR_ENTITY_GLINT
-
GLINT_TRANSLUCENT
-
GLINT
-
DIRECT_GLINT
-
ENTITY_GLINT
-
DIRECT_ENTITY_GLINT
-
LIGHTNING
-
TRIPWIRE
-
LINES
-
vertexFormat
-
drawMode
private final int drawMode -
expectedBufferSize
private final int expectedBufferSize -
hasCrumbling
private final boolean hasCrumbling -
translucent
private final boolean translucent -
optionalThis
-
-
Constructor Details
-
RenderLayer
public RenderLayer(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, Runnable startAction, Runnable endAction)
-
-
Method Details
-
getSolid
-
getCutoutMipped
-
getCutout
-
createTranslucentPhaseData
-
getTranslucent
-
getItemPhaseData
-
getTranslucentMovingBlock
-
getTranslucentNoCrumbling
-
getArmorCutoutNoCull
-
getEntitySolid
-
getEntityCutout
-
getEntityCutoutNoCull
-
getEntityCutoutNoCull
-
getEntityCutoutNoCullZOffset
-
getEntityCutoutNoCullZOffset
-
getItemEntityTranslucentCull
-
getEntityTranslucentCull
-
getEntityTranslucent
-
getEntityTranslucent
-
getEntitySmoothCutout
-
getBeaconBeam
-
getEntityDecal
-
getEntityNoOutline
-
getEntityShadow
-
getEntityAlpha
-
getEyes
-
getEnergySwirl
-
getLeash
-
getWaterMask
-
getOutline
-
getOutline
-
getArmorGlint
-
getArmorEntityGlint
-
method_30676
-
getGlint
-
getDirectGlint
-
getEntityGlint
-
getDirectEntityGlint
-
getBlockBreaking
-
getText
-
getTextSeeThrough
-
getLightning
-
getTripwirePhaseData
-
getTripwire
-
getEndPortal
-
getLines
-
of
public static RenderLayer.MultiPhase of(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, RenderLayer.MultiPhaseParameters phaseData) -
of
public static RenderLayer.MultiPhase of(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, RenderLayer.MultiPhaseParameters phases) -
draw
-
toString
- Overrides:
toString
in classRenderPhase
-
getBlockLayers
-
getExpectedBufferSize
public int getExpectedBufferSize() -
getVertexFormat
-
getDrawMode
public int getDrawMode() -
getAffectedOutline
-
isOutline
public boolean isOutline() -
hasCrumbling
public boolean hasCrumbling() -
asOptional
-