Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory properties #995

Closed
wants to merge 1 commit into from
Closed

Conversation

Faithcaio
Copy link
Contributor

@Faithcaio Faithcaio commented Oct 23, 2016

  • Change InventoryTitle(Property) on Containers
  • Implement getProperty etc.
    • Implement getProperty for "intermediate" inventories
    • Implement getProperty for custom inventories
    • Implement getProperty for top level inventories

Inventory Properties were not available.
This PR currently implements the getProperty/ies methods in the base interface MinecraftInventoryAdapter for Adapters and CustomInventories.

Questions:

  • How am I supposed to get InventoryProperties from top level/vanilla inventories?
    (like InventoryTitle)
  • What is the purpose of the property name when building custom inventories?
    It's only used with lowercased classname anyway (which is default in currently all InventoryProperties)
    • Inventory.Builder#property(name, property) remove name in API?

@Faithcaio Faithcaio force-pushed the feature/inventory-properties branch 2 times, most recently from 0efc6e6 to 3faf5e8 Compare November 26, 2016 15:09
@Faithcaio Faithcaio force-pushed the feature/inventory-properties branch 2 times, most recently from fc497c5 to 979cf11 Compare December 26, 2016 10:10
@felixoi
Copy link
Member

felixoi commented Jan 8, 2017

Is there any status in this?

bloodmc added a commit that referenced this pull request Feb 6, 2017
* Change keepSpawnLoaded, generateSpawnOnLoad, and loadOnStartup to
Boolean's to determine when nothing is set.
* Move PlayerChunkMap chunk unload queue with no players to start of server tick.
  This avoids chunks from unloading when requested before PlayerChunkMap tick.
* Always allow chunks to load when requested from getTileEntity.
  This fixes issues with mods such as RFToolsDimensions that check for a
  specific TE to perform logic.
* Remove unregisterable dimension code as it breaks Forge.
* Fix wrong foldername being used for hot-loaded dimensions.

Fixes #910, Fixes #920, Fixes #995, Fixes #1046
Fixes #1109, Fixes #1117, Fixes #1153
@Faithcaio Faithcaio force-pushed the feature/inventory-properties branch 2 times, most recently from ec87646 to 2b82d9a Compare February 26, 2017 08:05
@Faithcaio Faithcaio force-pushed the feature/inventory-properties branch from 2b82d9a to 2caf268 Compare July 25, 2017 16:21
@Faithcaio Faithcaio force-pushed the feature/inventory-properties branch 2 times, most recently from 1709245 to 0ac3bad Compare October 7, 2017 17:31
…ntainers

implement retrieving InventoryTitle Property from Container/IInventory
@Faithcaio Faithcaio closed this Oct 7, 2017
@Faithcaio Faithcaio deleted the feature/inventory-properties branch October 7, 2017 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants