Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/02/17 in all areas

  1. As by title, i have an entity that acts like a snowball (so it's throwable) but is not rendering when fired. This is how i register the rendering in my client proxy RenderingRegistry.registerEntityRenderingHandler(EntityGranade.class, new EntityGranadeFactory()); //The Entity Class public class EntityGranade extends EntityThrowable { private EntityLivingBase thrower; public EntityGranade(World worldIn) { super(worldIn); } public EntityGranade(World worldIn, EntityLivingBase throwerIn) { super(worldIn, throwerIn); this.thrower = throwerIn; } @SideOnly(Side.CLIENT) public EntityGranade(World worldIn, double x, double y, double z) { super(worldIn, x, y, z); } protected void onImpact(RayTraceResult result) { if(this.getThrower() != null && this.getThrower() instanceof EntityPlayerMP) { EntityPlayerMP player = (EntityPlayerMP)this.getThrower(); if(player.connection.getNetworkManager().isChannelOpen() && player.world == this.world) { EntityTNTPrimed tnt = new EntityTNTPrimed(player.world); tnt.world.createExplosion(tnt, this.posX, this.posY, this.posZ, 2.0F, true); } } this.setDead(); } } //The Factory Class public class EntityGranadeFactory implements IRenderFactory<EntityGranade>{ @Override public Render<? super EntityGranade> createRenderFor(RenderManager manager) { return new RenderSnowball<EntityGranade>(manager, MWItems.GRANADE, Minecraft.getMinecraft().getRenderItem()); } } I have other things registerd like this (like custom TNT) and they all works as well, is just this that is not rendering. So why this happen and how can be fixed?
    1 point
  2. Guys, the original question is really simple -- it isn't actually a problem at all. In Eclipse there are two ways of displaying the packages. There is a little down arrow in the top of the package pane that brings up a menu and in that there is Package Presentation. There are two options "Flat" and "Hierarchical". If you choose flat it will show the full package names "com.ejer.first" and if you choose hierarchical it will only show the full name if there are no other sibling packages. For example, in hierarchical if you start by creating a package called "com.ejer.first" then it will show it that way, but as soon as you create another package called "com.examplemod" it will then show them both in a directory tree "com > ejer.first" and "com > examplemod". In other words, your package is still properly com.ejer.first, it just displays as a folder explorer. So basically there was nothing wrong in the first post. That is the way hierarchical view looks.
    1 point
  3. - The odds of someone downloading a random file from the internet is pretty slim. - What will you do when the next thing doesn't work? You'll run out of people willing to fix stuff for you. You need to learn Java, and how to work your programming environment, BEFORE you try to learn to mod. It's not people trying to "tell you how to live your life", it's the rules of this forum, and just plain good advice. Learning Java through modding would be kind of like learning how to swap out an engine in your car with 0 automotive knowledge. . .and still needing to drive it to get to work.
    1 point
  4. Launchwrapper(which is a required library for forge) does not support java 9, please use java 8.
    1 point
  5. There's a JAR and EXE version of the installer available for every version of Forge, including the versions for Minecraft 1.12.x.
    1 point
  6. 1 point
×
×
  • Create New...

Important Information

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