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. Biomes are in the registry the same way blocks are in their registry.
  2. You either: a) need to set a block state (make sure to override shouldRefresh in your TE to return false if the block remains the same). b) need to override getActualState in order to get the state property from TE data.
  3. Imagine four cables placed into a square: # 1 2 3 4 Where the # is some producer. The producer pushes to 1, 1 pushes to 2, 2 pushes to 3, and 3 pushes to 1. Infinite loop (well, not necessarily, unless the power producer is removed and there's less total energy than what 4 cables can "hold"). On the other hand if a pull system is used, each of these cables will check all of their neighbors to see if their neighbors have more power than they do, if that neighbor does, extract it, and fill self. If none do, then the state of the system doesn't change.
  4. Items don't have metadata. As you are on the client you can call getSubItems safely and literate over the returned last of ItemStacks and get their metadata.
  5. In case 2, you should do it as a pull not a push. It is really hard to create infinite loops of "pull from upstream" compared to trying to determine which direction is downstream.
  6. Uh. Your counter exists in two logical sides, too...
  7. Oh look. That thing.
  8. Resources must be all lower case, files and code references.
  9. You mean a compiled jar file? You don't.
  10. Also, 1.7.10 is no longer supported here.
  11. There are three methods in the block class you need to override: Render type, is full cube, and is opaque cube
  12. This is because player input is handled client side and updates the server with the new position only.
  13. > Its not working > No code > No log / error messages And...you expect us to just read your mind?
  14. Or...just not expose the capability on that side.
  15. You're in the wrong place for 2 reasons: 1) this board is for mod developers, not mod users 2) This forum no longer supports 1.7.10
  16. Those are IInventory methods. You don't need them. The IItemHandler handles that. You return a different handler based on the side accessed in getCapability
  17. You subclass SlotItemHandler. For example, one of these two: https://github.com/Draco18s/ReasonableRealism/tree/master/src/main/java/com/draco18s/hardlib/api/internal/inventory Note that SlotOutput will not allow any item to be inserted what so ever while OutputItemStackHandler is a wrapper around another handler that prevents input through the wrapper.
  18. From the javadoc on the method itself
  19. Null sides are essentially for "internal" use. Such as a block being broken being able to drop all of its contained items
  20. That's funny.
  21. You mean the non-static method just above it that invokes the static one? addCollisionBoxToList?
  22. You can't override static methods.
  23. You can only do that for items that you control.
  24. There are circumstances where casting null is necessary. Such as when two methods have other wise ambiguous signatures, casting the null makes it unique.

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.