@Environment(value=CLIENT) public abstract class RenderLayer extends RenderPhase
Modifier and Type | Class and Description |
---|---|
(package private) static class |
RenderLayer.MultiPhase |
static class |
RenderLayer.MultiPhaseParameters |
(package private) static class |
RenderLayer.OutlineMode |
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
Modifier and Type | Field and 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 |
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 and Description |
---|
RenderLayer(String name,
VertexFormat vertexFormat,
int drawMode,
int expectedBufferSize,
boolean hasCrumbling,
boolean translucent,
Runnable startAction,
Runnable endAction) |
endDrawing, equals, hashCode, startDrawing
private static final RenderLayer SOLID
private static final RenderLayer CUTOUT_MIPPED
private static final RenderLayer CUTOUT
private static final RenderLayer TRANSLUCENT
private static final RenderLayer TRANSLUCENT_MOVING_BLOCK
private static final RenderLayer TRANSLUCENT_NO_CRUMBLING
private static final RenderLayer LEASH
private static final RenderLayer WATER_MASK
private static final RenderLayer ARMOR_GLINT
private static final RenderLayer ARMOR_ENTITY_GLINT
private static final RenderLayer GLINT_TRANSLUCENT
private static final RenderLayer GLINT
private static final RenderLayer DIRECT_GLINT
private static final RenderLayer ENTITY_GLINT
private static final RenderLayer DIRECT_ENTITY_GLINT
private static final RenderLayer LIGHTNING
private static final RenderLayer TRIPWIRE
public static final RenderLayer.MultiPhase LINES
private final VertexFormat vertexFormat
private final int drawMode
private final int expectedBufferSize
private final boolean hasCrumbling
private final boolean translucent
private final Optional<RenderLayer> optionalThis
public RenderLayer(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, Runnable startAction, Runnable endAction)
public static RenderLayer getSolid()
public static RenderLayer getCutoutMipped()
public static RenderLayer getCutout()
private static RenderLayer.MultiPhaseParameters createTranslucentPhaseData()
public static RenderLayer getTranslucent()
private static RenderLayer.MultiPhaseParameters getItemPhaseData()
public static RenderLayer getTranslucentMovingBlock()
public static RenderLayer getTranslucentNoCrumbling()
public static RenderLayer getArmorCutoutNoCull(Identifier texture)
public static RenderLayer getEntitySolid(Identifier texture)
public static RenderLayer getEntityCutout(Identifier texture)
public static RenderLayer getEntityCutoutNoCull(Identifier texture, boolean affectsOutline)
public static RenderLayer getEntityCutoutNoCull(Identifier texture)
public static RenderLayer getEntityCutoutNoCullZOffset(Identifier texture, boolean affectsOutline)
public static RenderLayer getEntityCutoutNoCullZOffset(Identifier texture)
public static RenderLayer getItemEntityTranslucentCull(Identifier texture)
public static RenderLayer getEntityTranslucentCull(Identifier texture)
public static RenderLayer getEntityTranslucent(Identifier texture, boolean affectsOutline)
public static RenderLayer getEntityTranslucent(Identifier texture)
public static RenderLayer getEntitySmoothCutout(Identifier texture)
public static RenderLayer getBeaconBeam(Identifier texture, boolean translucent)
public static RenderLayer getEntityDecal(Identifier texture)
public static RenderLayer getEntityNoOutline(Identifier texture)
public static RenderLayer getEntityShadow(Identifier texture)
public static RenderLayer getEntityAlpha(Identifier texture, float alpha)
public static RenderLayer getEyes(Identifier texture)
public static RenderLayer getEnergySwirl(Identifier texture, float x, float y)
public static RenderLayer getLeash()
public static RenderLayer getWaterMask()
public static RenderLayer getOutline(Identifier texture)
public static RenderLayer getOutline(Identifier texture, RenderPhase.Cull cull)
public static RenderLayer getArmorGlint()
public static RenderLayer getArmorEntityGlint()
public static RenderLayer method_30676()
public static RenderLayer getGlint()
public static RenderLayer getDirectGlint()
public static RenderLayer getEntityGlint()
public static RenderLayer getDirectEntityGlint()
public static RenderLayer getBlockBreaking(Identifier texture)
public static RenderLayer getText(Identifier texture)
public static RenderLayer getTextSeeThrough(Identifier texture)
public static RenderLayer getLightning()
private static RenderLayer.MultiPhaseParameters getTripwirePhaseData()
public static RenderLayer getTripwire()
public static RenderLayer getEndPortal(int layer)
public static RenderLayer getLines()
public static RenderLayer.MultiPhase of(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, RenderLayer.MultiPhaseParameters phaseData)
public static RenderLayer.MultiPhase of(String name, VertexFormat vertexFormat, int drawMode, int expectedBufferSize, boolean hasCrumbling, boolean translucent, RenderLayer.MultiPhaseParameters phases)
public void draw(BufferBuilder buffer, int cameraX, int cameraY, int cameraZ)
public String toString()
toString
in class RenderPhase
public static List<RenderLayer> getBlockLayers()
public int getExpectedBufferSize()
public VertexFormat getVertexFormat()
public int getDrawMode()
public Optional<RenderLayer> getAffectedOutline()
public boolean isOutline()
public boolean hasCrumbling()
public Optional<RenderLayer> asOptional()