Jump to content

Recommended Posts

Posted

I'm making my own render class that is based on 'RenderEnderCrystal' and I'm wondering  what the proper way to do this is. Currently I'm just copying the class and changing EntityEnderCrystal to my entity but it's not working.

 

This is my render class:

 

  Reveal hidden contents

 

The proud(ish) developer of Ancients

Posted

Check if RenderArtifact#doRender called.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

I checked, and it isn't being called. How do I fix it? I've registered it in my client proxy with:

RenderManager renderer = Minecraft.getMinecraft().getRenderManager();

RenderingRegistry.registerEntityRenderingHandler(Artifact.class, new RenderArtifact(renderer));

The proud(ish) developer of Ancients

Posted

1. Check if the entity exists or not.

2. You shouldn't provide RenderManager in the constructor of the render class.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted
  On 5/30/2015 at 2:16 PM, memcallen said:

1.I'm not sure the proper way to check, but I can spawn it in with /summon.

 

2.I changed that, thanks.

You can check it with some printlns(like onEntityUpdate), check world.isRemote there.

and please post your current code.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

My entity does exsist, onUpdate prints a message.

 

Entity:

 

  Reveal hidden contents

 

Renderer:

 

  Reveal hidden contents

 

The proud(ish) developer of Ancients

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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