Class SkullSpecialRenderer
java.lang.Object
net.minecraft.client.renderer.special.SkullSpecialRenderer
- All Implemented Interfaces:
SpecialModelRenderer<ResolvableProfile>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final SkullModelBaseprivate final SkullBlock.Typeprivate final ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionSkullSpecialRenderer(SkullBlock.Type skullType, SkullModelBase model, ResourceLocation textureOverride, float animation) -
Method Summary
Modifier and TypeMethodDescriptionextractArgument(ItemStack p_386712_) voidrender(ResolvableProfile p_388043_, ItemDisplayContext p_387716_, PoseStack p_386490_, MultiBufferSource p_388080_, int p_387930_, int p_387838_, boolean p_386959_)
-
Field Details
-
skullType
-
model
-
textureOverride
-
animation
private final float animation
-
-
Constructor Details
-
SkullSpecialRenderer
public SkullSpecialRenderer(SkullBlock.Type skullType, SkullModelBase model, @Nullable ResourceLocation textureOverride, float animation)
-
-
Method Details
-
extractArgument
- Specified by:
extractArgumentin interfaceSpecialModelRenderer<ResolvableProfile>
-
render
public void render(@Nullable ResolvableProfile p_388043_, ItemDisplayContext p_387716_, PoseStack p_386490_, MultiBufferSource p_388080_, int p_387930_, int p_387838_, boolean p_386959_) - Specified by:
renderin interfaceSpecialModelRenderer<ResolvableProfile>
-