Class LivingEntityEmissiveLayer<S extends LivingEntityRenderState,M extends EntityModel<S>>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<S,M>
net.minecraft.client.renderer.entity.layers.LivingEntityEmissiveLayer<S,M>
public class LivingEntityEmissiveLayer<S extends LivingEntityRenderState,M extends EntityModel<S>>
extends RenderLayer<S,M>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
LivingEntityEmissiveLayer.DrawSelector<S extends LivingEntityRenderState,
M extends EntityModel<S>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LivingEntityEmissiveLayer.AlphaFunction
<S> private final boolean
private final Function
<ResourceLocation, RenderType> private final LivingEntityEmissiveLayer.DrawSelector
<S, M> private final ResourceLocation
-
Constructor Summary
ConstructorsConstructorDescriptionLivingEntityEmissiveLayer
(RenderLayerParent<S, M> p_379642_, ResourceLocation p_379818_, LivingEntityEmissiveLayer.AlphaFunction<S> p_380124_, LivingEntityEmissiveLayer.DrawSelector<S, M> p_379846_, Function<ResourceLocation, RenderType> p_380046_, boolean p_388482_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
onlyDrawSelectedParts
(S p_379774_) void
render
(PoseStack p_380055_, MultiBufferSource p_379364_, int p_380349_, S p_379499_, float p_379823_, float p_380346_) private void
Methods inherited from class net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, renderColoredCutoutModel
-
Field Details
-
texture
-
alphaFunction
private final LivingEntityEmissiveLayer.AlphaFunction<S extends LivingEntityRenderState> alphaFunction -
drawSelector
private final LivingEntityEmissiveLayer.DrawSelector<S extends LivingEntityRenderState,M extends EntityModel<S>> drawSelector -
bufferProvider
-
alwaysVisible
private final boolean alwaysVisible
-
-
Constructor Details
-
LivingEntityEmissiveLayer
public LivingEntityEmissiveLayer(RenderLayerParent<S, M> p_379642_, ResourceLocation p_379818_, LivingEntityEmissiveLayer.AlphaFunction<S> p_380124_, LivingEntityEmissiveLayer.DrawSelector<S, M> p_379846_, Function<ResourceLocation, RenderType> p_380046_, boolean p_388482_)
-
-
Method Details
-
render
public void render(PoseStack p_380055_, MultiBufferSource p_379364_, int p_380349_, S p_379499_, float p_379823_, float p_380346_) - Specified by:
render
in classRenderLayer<S extends LivingEntityRenderState,
M extends EntityModel<S>>
-
onlyDrawSelectedParts
-
resetDrawForAllParts
private void resetDrawForAllParts()
-