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

CraftingInventory is not a Grid #1710

Merged
merged 2 commits into from
Dec 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,16 @@ public interface Container extends Interactable {
* Shows this Inventory to the given viewer.
*
* @param viewer The viewer to show this inventory to
* @param cause The {@link Cause} to use when opening the inventory
* @throws IllegalArgumentException if a {@link PluginContainer} is not the root of the cause
*/
void open(Player viewer, Cause cause) throws IllegalArgumentException;
void open(Player viewer) throws IllegalArgumentException;

/**
* Stops showing this Inventory to the given viewer.
*
* @param viewer The viewer to stop showing this inventory to
* @param cause The {@link Cause} to provide when closing the inventory
* @throws IllegalArgumentException if a {@link PluginContainer} is not the root of the cause
*/
void close(Player viewer, Cause cause) throws IllegalArgumentException;
void close(Player viewer) throws IllegalArgumentException;

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
package org.spongepowered.api.item.inventory.crafting;

import org.spongepowered.api.item.inventory.type.GridInventory;
import org.spongepowered.api.item.inventory.type.OrderedInventory;
import org.spongepowered.api.item.recipe.crafting.CraftingRecipe;
import org.spongepowered.api.world.World;

Expand All @@ -34,7 +34,7 @@
* A CraftingInventory represents the inventory of something that can craft
* items.
*/
public interface CraftingInventory extends GridInventory {
public interface CraftingInventory extends OrderedInventory {

/**
* Gets the crafting matrix of this CraftingInventory.
Expand Down