Merge upstream pull request #1693 from Katrix-/relicsUUID

This commit is contained in:
Vincent Lee committed 2016-02-14 10:54:35 -06:00
commit d1ff5e89ca
5 files changed
+132 -11

No files matched your search

@@ -10,6 +10,8 @@
*/
package vazkii.botania.api.item;
import java.util.UUID;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.Achievement;
@@ -22,6 +24,7 @@ public interface IRelic {
/**
* Binds to the player name passed in.
*/
@Deprecated
public void bindToUsername(String playerName, ItemStack stack);
/**
@@ -29,6 +32,21 @@ public interface IRelic {
*/
public String getSoulbindUsername(ItemStack stack);
/**
* Binds to the UUID passed in.
*/
public void bindToUUID(UUID uuid, ItemStack stack);
/**
* Gets the UUID of the person this relic is bound to.
*/
public UUID getSoulbindUUID(ItemStack stack);
/**
* Checks if the relic is using UUIDs.
*/
public boolean hasUUID(ItemStack stack);
/**
* Sets the achievement that this relic binds to.
*/