forked from Bukkit/Bukkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify give command to support 1.7 features. Fixes BUKKIT-5286
Necessary additions include an interface to add internal value conversions that are inappropriate for proper API design. This acts as a substitute for properly formed, user-friendly commands in an effort to maintain relatively vanilla behavior.
- Loading branch information
1 parent
bff28d8
commit ce94a35
Showing
4 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.bukkit; | ||
|
||
import java.util.List; | ||
|
||
import org.bukkit.inventory.ItemStack; | ||
|
||
/** | ||
* This interface provides value conversions that may be specific to a | ||
* runtime, or have arbitrary meaning (read: magic values). | ||
* <p> | ||
* Their existence and behavior is not guaranteed across future versions. They | ||
* may be poorly named, throw exceptions, have misleading parameters, or any | ||
* other bad programming practice. | ||
* <p> | ||
* This interface is unsupported and only for internal use. | ||
* | ||
* @deprecated Unsupported & internal use only | ||
*/ | ||
@Deprecated | ||
public interface UnsafeValues { | ||
|
||
Material getMaterialFromInternalName(String name); | ||
|
||
List<String> tabCompleteInternalMaterialName(String token, List<String> completions); | ||
|
||
ItemStack modifyItemStack(ItemStack stack, String arguments); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters