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

  • Author

the error says : Description    Resource    Path    Location    Type Return type for the method is missing    SkySkeletonRenderer.java   

  • Author

How could i solve it ?

It says the error is this:

public SkySkeletonRenderer(EntityRendererManager renderManagerIn) {

 

show more of your code 1 line doesn't help, since this line looks good for me
also do you know basic java since the error should says whats wrong

  • Author

renderer :

package net.mcreator.additionaladventure.entity.renderer;

import net.minecraftforge.fml.client.registry.RenderingRegistry;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.client.event.ModelRegistryEvent;

import net.minecraft.util.math.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.model.ModelRenderer;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.entity.layers.HeldItemLayer;
import net.minecraft.client.renderer.entity.MobRenderer;
import net.minecraft.client.renderer.entity.EntityRendererManager;

import net.mcreator.additionaladventure.entity.SkySkeletonEntity;

import com.mojang.blaze3d.vertex.IVertexBuilder;
import com.mojang.blaze3d.matrix.MatrixStack;

public class SkySkeletonRenderer {
	public static class ModelRegisterHandler {
		@SubscribeEvent
		public void registerModels(ModelRegistryEvent event) {
			RenderingRegistry.registerEntityRenderingHandler(SkySkeletonEntity.entity, renderManager -> {
				return new MobRenderer(renderManager, new Modelcustom_model(), 0.5f) {
					@Override
					public ResourceLocation getEntityTexture(Entity entity) {
						return new ResourceLocation("additional_adventure:textures/esqueletodelcielo.png");
					}
						public SkySkeletonRenderer(EntityRendererManager renderManagerIn) {
						super(renderManagerIn, new Modelcustom_model<>, 0.5F);
						this.addLayer(new HeldItemLayer(this));
					}
				};
			});
		}
	}

Error 1  Description    Resource    Path    Location    Type
Cannot infer type argument(s) for <T> registerEntityRenderingHandler(EntityType<T>, IRenderFactory<? super T>)    SkySkeletonRenderer.java    /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer    line 1    Java Problem

Error 2 : Description    Resource    Path    Location    Type
Constructor call must be the first statement in a constructor    SkySkeletonRenderer.java    /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer    line 1    Java Problem
 

Error 3 :Description    Resource    Path    Location    Type
Syntax error, insert "( )" to complete Expression    SkySkeletonRenderer.java    /additional_adventure/src/main/java/net/mcreator/additionaladventure/entity/renderer    line 32    Java Problem

Please help me fix this.

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.