Jump to content

Recommended Posts

Posted

I am working disabling one or more slots in a player's inventory and wanted to double check if my thought process is going about it correctly.

 

Should I be extending Slot and overriding methods (like isEnabled and canTakeStack). Then replacing the slot within the inventoryContainer with an instance of the extended slot?

Or should I completely replace the default inventory?

 

Should this have an Item Handler Capability if I'm not replacing the default inventory?

 

Also, If I wanted to show visually/gray out any of the disabled slots I would need to completely take over how the inventory gui is displayed correct?

 

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.