Package net.neoforged.neoforge.client
Enum Class NeoForgeRenderTypes
- All Implemented Interfaces:
Serializable,Comparable<NeoForgeRenderTypes>,Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNeoForgeRenderTypes(Supplier<RenderType> renderTypeSupplier) -
Method Summary
Modifier and TypeMethodDescriptionget()static RenderTypegetEntityCutoutMipped(ResourceLocation textureLocation) static RenderTypegetItemLayeredCutout(ResourceLocation textureLocation) static RenderTypegetItemLayeredCutoutMipped(ResourceLocation textureLocation) static RenderTypegetItemLayeredSolid(ResourceLocation textureLocation) static RenderTypegetItemLayeredTranslucent(ResourceLocation textureLocation) static RenderTypegetTextFiltered(ResourceLocation locationIn) static RenderTypegetTextIntensityFiltered(ResourceLocation locationIn) static RenderTypestatic RenderTypegetTextIntensitySeeThroughFiltered(ResourceLocation locationIn) static RenderTypegetTextPolygonOffsetFiltered(ResourceLocation locationIn) static RenderTypegetTextSeeThroughFiltered(ResourceLocation locationIn) static RenderTypegetTranslucentParticlesTarget(ResourceLocation locationIn) static RenderTypegetUnlitTranslucent(ResourceLocation textureLocation) static RenderTypegetUnlitTranslucent(ResourceLocation textureLocation, boolean sortingEnabled) static RenderTypegetUnsortedTranslucent(ResourceLocation textureLocation) static NeoForgeRenderTypesReturns the enum constant of this class with the specified name.static NeoForgeRenderTypes[]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
-
renderTypeSupplier
-
-
Constructor Details
-
NeoForgeRenderTypes
-
-
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.
-
getTextFiltered
- Returns:
- Replacement of
RenderType.text(ResourceLocation), but with linear texture filtering.
-
getTextIntensityFiltered
- Returns:
- Replacement of
RenderType.textIntensity(ResourceLocation), but with linear texture filtering.
-
getTextPolygonOffsetFiltered
- Returns:
- Replacement of
RenderType.textPolygonOffset(ResourceLocation), but with linear texture filtering.
-
getTextIntensityPolygonOffsetFiltered
- Returns:
- Replacement of
RenderType.textIntensityPolygonOffset(ResourceLocation), but with linear texture filtering.
-
getTextSeeThroughFiltered
- Returns:
- Replacement of
RenderType.textSeeThrough(ResourceLocation), but with linear texture filtering.
-
getTextIntensitySeeThroughFiltered
- Returns:
- Replacement of
RenderType.textIntensitySeeThrough(ResourceLocation), but with linear texture filtering.
-
getTranslucentParticlesTarget
- Returns:
- A variation of
that uses
invalid reference
RenderType#translucent()RenderStateShard.PARTICLES_TARGETto allow fabulous transparency sorting when usingRenderLevelStageEvent
-
get
-