Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/06/17 in all areas

  1. Seriously? Can't you people even look at the Enum? Or other blocks that use it? EnumFacing.getFront(meta) /** * Get a Facing by it's index (0-5). The order is D-U-N-S-W-E. Named getFront for legacy reasons. */ public static EnumFacing getFront(int index) { return VALUES[MathHelper.abs(index % VALUES.length)]; }
    2 points
  2. You didn't answer diesieben07's question. Did you build the JAR using IDEA's build system or did you build it using the build Gradle task? Only the latter is correct.
    1 point
  3. There are no second level recipes, everything's "first level." If you have an item that is made up of non-resource items (say bookshelves: made out of books) you have to use a lookup table to figure out how much paper is involved: you know how many books the bookshelf is made out of, then multiply by the amount of paper in each book.
    1 point
  4. Actually you use use .isAir() instead. Mods may add blocks that they wish to be treated as air (for example, Greg's Lighting's spotlight, which creates a column of blocks that are light sources, but should otherwise be treated as air).
    1 point
  5. I'm *not* doing anything with its rotation... and it's just not rotating at all... As for the lighting, I *didn't* disable lighting at first, and it was black; that's why I tried disabling lighting, but it's still black. Either way I tried that, it still turns out black. *EDIT* A little bit of debug output shows me that the age of the EntityItem is *not* ticking up. I'm going to look into that more, but I assume that's because it's not spawned in the world? At the same time, I don't *want* it spawned in the world as an entity, I'm only using it for rendering, so... how do I get its age to tick up without spawning it? *EDIT 2* Problem 1 is solved! Turns out that the age is ticked up in the onUpdate() method, and that's only called naturally for entities spawned in a world. So I just manually call onUpdate() now, immediately after setting the entity's world, and it spins perfectly normally! Now I just need to figure out how to get the colors/lighting correct.... any ideas? *EDIT 3* AHA! Solved it! I stumbled upon the solution completely accidentally, really I was going to remove the super.render() call, since I didn't want the nameplate to render, and I figured I should check that method to make sure it's not doing anything else important that I might need to keep. It's not, but in that method, before rendering the nameplate, it calls the setLightmapDisabled method. That method doesn't use GlStateManager.disableLighting() at all -- instead, it disables a lighting map texture. So I removed the super.render() call and tried using setLightmapDisabled in my rendering code instead... and it worked! The item now renders perfectly fine Thank you for your help, Draco!
    1 point
×
×
  • Create New...

Important Information

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