Added API to set the name of an inventory#754
Conversation
|
+1 |
|
I disagree on this PR, specifically putting the method in Inventory. I propose a NameableEntity interface. Reasoning: |
|
But Villagers themselves are an inventory and I think it should go there. |
|
Ok, I might try that. Could we use the Nameable class for items too since |
|
@md-5 villagers contain an inventory, but do Bats? Do Sheep? |
|
@mbax but we are talking about containers, not entities.... |
|
@md-5 Inventory names are about to come from their associated entities and tileentities. I argue it'd be better as a consistent Interface that could be applied to livingentities and blockstates. :) |
|
@iKeirNez This needs to be updated to the latest version of Bukkit. |
|
Abandoned. |
This does not work for all types of Inventories due to a minecraft limitation (Such as Furnaces). This commit will allow players to change the name (title) of inventories.
CraftBukkit PR: Bukkit/CraftBukkit#992
Jira: https://bukkit.atlassian.net/browse/BUKKIT-3432
Test Plugin (all chests titles will be renamed): http://www.box.net/s/azf35yocux0tog4liifh