diff options
author | md_5 <git@md-5.net> | 2016-03-02 07:03:45 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-02 07:03:45 +1100 |
commit | aa1347ae6a91e0fcb2d5762b7c5881c9bf685508 (patch) | |
tree | a99ee1e1452f9d6742d1cfa9531c530c088e2db6 /src/main/java/org | |
parent | 3d25f0788587ad1c2a0f802f669843d1b9f3aaa4 (diff) | |
download | bukkit-aa1347ae6a91e0fcb2d5762b7c5881c9bf685508.tar bukkit-aa1347ae6a91e0fcb2d5762b7c5881c9bf685508.tar.gz bukkit-aa1347ae6a91e0fcb2d5762b7c5881c9bf685508.tar.lz bukkit-aa1347ae6a91e0fcb2d5762b7c5881c9bf685508.tar.xz bukkit-aa1347ae6a91e0fcb2d5762b7c5881c9bf685508.zip |
SPIGOT-1592: Deprecate SpawnEgg spawnedType methods since they cannot be fixed in their current state.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/material/SpawnEgg.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/material/SpawnEgg.java b/src/main/java/org/bukkit/material/SpawnEgg.java index 42606271..596d08ae 100644 --- a/src/main/java/org/bukkit/material/SpawnEgg.java +++ b/src/main/java/org/bukkit/material/SpawnEgg.java @@ -2,6 +2,7 @@ package org.bukkit.material; import org.bukkit.Material; import org.bukkit.entity.EntityType; +import org.bukkit.inventory.meta.ItemMeta; /** * Represents a spawn egg that can be used to spawn mobs @@ -40,7 +41,9 @@ public class SpawnEgg extends MaterialData { * Get the type of entity this egg will spawn. * * @return The entity type. + * @deprecated This is now stored in {@link ItemMeta}. See SPIGOT-1592. */ + @Deprecated public EntityType getSpawnedType() { return EntityType.fromId(getData()); } @@ -49,7 +52,9 @@ public class SpawnEgg extends MaterialData { * Set the type of entity this egg will spawn. * * @param type The entity type. + * @deprecated This is now stored in {@link ItemMeta}. See SPIGOT-1592. */ + @Deprecated public void setSpawnedType(EntityType type) { setData((byte) type.getTypeId()); } |