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

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. I don't think that auth server would even have a clue as to whether the person is currently online or not, much less which server they are on.
  2. That's the one. I haven't migrated to 1.8 yet, but I have heard about the method.
  3. The item "moves" every tick because when you modify the stackTagCompound Minecraft sees it as being a new item stack, not the same item stack. I believe there is a method in the Item class called shouldRefresh or similar. You'll need to override that to return false.
  4. Also do this for me: (This is my own resources, I'm interested in seeing yours, open up just enough to show me the compostbin.png)
  5. Go look at the nametag code.
  6. A texture with a circle drawn on it and rendered so that it always faces the player doesn't require much know how, just a little trig
  7. getInteger(...) is a convenience method wrapped around getProperty(...).getInt()
  8. No, it wouldn't, it just isn't a thing you should be doing.
  9. 1) show your render class 2) don't use registerGlobalEntityID
  10. Or more specifically, you need to wrap the GL11 calls around the render function for the part.
  11. Ah. Well. As long as it is being used correctly.
  12. mo, your RenderTroop constructor.
  13. That's the one. It isn't called "sand" anymore because it now handles any and every block.
  14. The config folder is a Forge thing not a vanilla thing. And just because you're using json not .config doesn't mean it isn't a config file. Add to that the fact that the /assets directory doesn't exist when you distribute your mod.
  15. Proper naming convention would slow that MyClass is a class where myClass is an instance. Or better yet, myLocallyIntelligentName so that you don't HAVE to make the distinction, but Classes should always start with a capital letter and instances a lower case letter.
  16. Pretty sure we mentioned that a couple times... Ah, yes, here:
  17. There is no EntityFallingGravel. It uses the same EntityFallingSand.
  18. Why so you have a function inside your super call?
  19. No no no no. You're creating a map here. Good. You're spring the keys, good. You then save the story's keys to the map and json encode the map, bad: this fundamentally doesn't make sense. What you should do is loop through the sorted array and retreive the values in order to write to the json file. It doesn't matter of the json is encoding a map with 4000 items in it or 4000 individually sorted key-value pairs one at a time. Alternatively, use a data structure someone else already created that does what you need, as Lex suggests, rather than trying to make one that doesn't work that way work that way. The whole point of a HashTable is that the values are stored in a location that is easy to determine based on the key: "Item152964" is stored at index 15964, irregardless of if the preceding 15963 items exist or not. It is about fast lookup, not arrangement.
  20. Leave the hashmap alone. Only sort the keys in order to write the values for human reading. After that you shouldn't care.
  21. No worries, there is no such thing as a stupid question. There's only questions that clearly indicate that the user isn't trying to learn. (I've muted a couple of these folks after a thread basically goes "I have a problem," "ok, do X," "it didn't work," "show your new code," "ok, here it is," "you didn't do X like I told you to." Back and forth six times).
  22. You still need to return true on the client. For instance, I have this in one of my inventory blocks: @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if (world.isRemote) { return true; } else { player.openGui(IndustryBase.instance, 1, world, x, y, z); return true; } }

Important Information

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

Account

Navigation

Search

Search

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.