Package net.minecraftforge.client
Enum Class ForgeRenderTypes
- All Implemented Interfaces:
Serializable
,Comparable<ForgeRenderTypes>
,Constable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ForgeRenderTypes
(NonNullSupplier<RenderType> renderTypeSupplier) -
Method Summary
Modifier and TypeMethodDescriptionget()
static RenderType
getEntityCutoutMipped
(ResourceLocation textureLocation) static RenderType
getItemLayeredCutout
(ResourceLocation textureLocation) static RenderType
getItemLayeredCutoutMipped
(ResourceLocation textureLocation) static RenderType
getItemLayeredSolid
(ResourceLocation textureLocation) static RenderType
getItemLayeredTranslucent
(ResourceLocation textureLocation) static RenderType
getText
(ResourceLocation locationIn) static RenderType
getTextIntensity
(ResourceLocation locationIn) static RenderType
getTextIntensityPolygonOffset
(ResourceLocation locationIn) static RenderType
getTextIntensitySeeThrough
(ResourceLocation locationIn) static RenderType
getTextPolygonOffset
(ResourceLocation locationIn) static RenderType
getTextSeeThrough
(ResourceLocation locationIn) static RenderType
getTranslucentParticlesTarget
(ResourceLocation locationIn) static RenderType
getUnlitTranslucent
(ResourceLocation textureLocation) static RenderType
getUnlitTranslucent
(ResourceLocation textureLocation, boolean sortingEnabled) static RenderType
getUnsortedTranslucent
(ResourceLocation textureLocation) static ForgeRenderTypes
Returns the enum constant of this class with the specified name.static ForgeRenderTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ITEM_LAYERED_SOLID
-
ITEM_LAYERED_CUTOUT
-
ITEM_LAYERED_CUTOUT_MIPPED
-
ITEM_LAYERED_TRANSLUCENT
-
ITEM_UNSORTED_TRANSLUCENT
-
ITEM_UNLIT_TRANSLUCENT
-
ITEM_UNSORTED_UNLIT_TRANSLUCENT
-
TRANSLUCENT_ON_PARTICLES_TARGET
-
-
Field Details
-
enableTextTextureLinearFiltering
public static boolean enableTextTextureLinearFiltering -
renderTypeSupplier
-
-
Constructor Details
-
ForgeRenderTypes
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getItemLayeredSolid
- Returns:
- A RenderType fit for multi-layer solid item rendering.
-
getItemLayeredCutout
- Returns:
- A RenderType fit for multi-layer cutout item item rendering.
-
getItemLayeredCutoutMipped
- Returns:
- A RenderType fit for multi-layer cutout-mipped item rendering.
-
getItemLayeredTranslucent
- Returns:
- A RenderType fit for multi-layer translucent item rendering.
-
getUnsortedTranslucent
- Returns:
- A RenderType fit for translucent item/entity rendering, but with depth sorting disabled.
-
getUnlitTranslucent
- Returns:
- A RenderType fit for translucent item/entity rendering, but with diffuse lighting disabled so that fullbright quads look correct.
-
getUnlitTranslucent
public static RenderType getUnlitTranslucent(ResourceLocation textureLocation, boolean sortingEnabled) - Parameters:
sortingEnabled
- If false, depth sorting will not be performed.- Returns:
- A RenderType fit for translucent item/entity rendering, but with diffuse lighting disabled so that fullbright quads look correct.
-
getEntityCutoutMipped
- Returns:
- Same as
RenderType.entityCutout(ResourceLocation)
, but with mipmapping enabled.
-
getText
- Returns:
- Replacement of
RenderType.text(ResourceLocation)
, but with optional linear texture filtering.
-
getTextIntensity
- Returns:
- Replacement of
RenderType.textIntensity(ResourceLocation)
, but with optional linear texture filtering.
-
getTextPolygonOffset
- Returns:
- Replacement of
RenderType.textPolygonOffset(ResourceLocation)
, but with optional linear texture filtering.
-
getTextIntensityPolygonOffset
- Returns:
- Replacement of
RenderType.textIntensityPolygonOffset(ResourceLocation)
, but with optional linear texture filtering.
-
getTextSeeThrough
- Returns:
- Replacement of
RenderType.textSeeThrough(ResourceLocation)
, but with optional linear texture filtering.
-
getTextIntensitySeeThrough
- Returns:
- Replacement of
RenderType.textIntensitySeeThrough(ResourceLocation)
, but with optional linear texture filtering.
-
getTranslucentParticlesTarget
- Returns:
- A variation of
RenderType.translucent()
that usesOutputStateShard#PARTICLES_TARGET
to allow fabulous transparency sorting when usingRenderLevelStageEvent
-
get
-