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

Implement donkey, mule & llama inventories #871

Closed
wants to merge 6 commits into from
Closed

Conversation

mastercoms
Copy link
Member

Continuation from #864

/**
* Creates and sets a new inventory, and copies equipment over from the existing inventory.
*/
protected abstract void createNewInventory();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should return <InventoryT>, and the constructor should set the inventory field to the return value. The method implementations shouldn't have to update the field imo.

import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.LlamaInventory;

public class GlowLlamaInventory extends GlowInventory implements LlamaInventory {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs documentation


public abstract class GlowChestedHorse extends GlowAbstractHorse implements ChestedHorse {
/**
* A quadruped whose inventory may include a chest.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quadruped -> horse

"Quadruped" is too broad

@Pr0methean
Copy link
Contributor

Superseded by #872.

@Pr0methean Pr0methean closed this Mar 18, 2018
@mastercoms mastercoms deleted the chestedHorse branch March 18, 2018 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants