Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

RenderFile:

public class RenderLegendaryMalzahar<T extends Mob, M extends HumanoidModel<T>> extends MobRenderer<T, M> {

private static final ResourceLocation TEXTURE = new ResourceLocation(AncientFruitTrees.MODID, "textures/model/legendary/malzahar_a.png"); public

RenderLegendaryMalzahar(EntityRendererProvider.Context p_174169_, M p_174170_, float p_174171_) { this(p_174169_, p_174170_, p_174171_, 1.0F, 1.0F, 1.0F); }

 

public RenderLegendaryMalzahar(EntityRendererProvider.Context p_174173_, M p_174174_, float p_174175_, float p_174176_, float p_174177_, float p_174178_) {

super(p_174173_, p_174174_, p_174175_);

this.addLayer(new CustomHeadLayer(this, p_174173_.getModelSet(), p_174176_, p_174177_, p_174178_));

this.addLayer(new ElytraLayer(this, p_174173_.getModelSet()));

this.addLayer(new ItemInHandLayer(this)); }

 

@Nonnull public ResourceLocation getTextureLocation(@Nonnull T p_114891_) { return TEXTURE; }

 

This part doesn't work, cos RenderFactory does not seem to exist and neither does RenderingRegistry, and the model class above does not provide an constructor with no params.

public class ModRenderRegistry { public static void registryEntityRenderers() { RegistryObject.of(LegendaryMalzahar.class, new RenderLegendaryMalzahar()); RegistryObject.of(WowLichKing.class, new RenderWowLichKing()); } }

Edited by DinoPawz
restore spacing

nobody can read this code, use the code feature
and look at the vanilla code because models use now LayerDefinition

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.