13
0
geforkt von Mirrors/Paper

Deprecate some methods which are likely to require changes in the future

Ref http://mojang.com/2016/08/minecraft-snapshot-16w32a/

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2016-08-12 18:22:33 +10:00
Ursprung e74f8f6b5e
Commit 24f6f4f05c
4 geänderte Dateien mit 21 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -6,13 +6,17 @@ public interface Guardian extends Monster {
* Check if the Guardian is an elder Guardian * Check if the Guardian is an elder Guardian
* *
* @return true if the Guardian is an Elder Guardian, false if not * @return true if the Guardian is an Elder Guardian, false if not
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public boolean isElder(); public boolean isElder();
/** /**
* Set the Guardian to an elder Guardian or not * Set the Guardian to an elder Guardian or not
* *
* @param shouldBeElder True if this Guardian should be a elder Guardian, false if not * @param shouldBeElder True if this Guardian should be a elder Guardian, false if not
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public void setElder(boolean shouldBeElder); public void setElder(boolean shouldBeElder);
} }

Datei anzeigen

@ -5,7 +5,9 @@ import org.bukkit.inventory.InventoryHolder;
/** /**
* Represents a Horse. * Represents a Horse.
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public interface Horse extends Animals, Vehicle, InventoryHolder, Tameable { public interface Horse extends Animals, Vehicle, InventoryHolder, Tameable {
/** /**
@ -105,7 +107,9 @@ public interface Horse extends Animals, Vehicle, InventoryHolder, Tameable {
* horse is determined using the variant. * horse is determined using the variant.
* *
* @return a {@link Variant} representing the horse's variant * @return a {@link Variant} representing the horse's variant
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public Variant getVariant(); public Variant getVariant();
/** /**
@ -121,7 +125,9 @@ public interface Horse extends Animals, Vehicle, InventoryHolder, Tameable {
* will remove the chest and its contents. * will remove the chest and its contents.
* *
* @param variant a {@link Variant} for this horse * @param variant a {@link Variant} for this horse
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public void setVariant(Variant variant); public void setVariant(Variant variant);
/** /**

Datei anzeigen

@ -9,14 +9,18 @@ public interface Skeleton extends Monster {
* Gets the current type of this skeleton. * Gets the current type of this skeleton.
* *
* @return Current type * @return Current type
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public SkeletonType getSkeletonType(); public SkeletonType getSkeletonType();
/** /**
* Sets the new type of this skeleton. * Sets the new type of this skeleton.
* *
* @param type New type * @param type New type
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public void setSkeletonType(SkeletonType type); public void setSkeletonType(SkeletonType type);
/* /*

Datei anzeigen

@ -23,14 +23,16 @@ public interface Zombie extends Monster {
* Gets whether the zombie is a villager * Gets whether the zombie is a villager
* *
* @return Whether the zombie is a villager * @return Whether the zombie is a villager
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public boolean isVillager(); public boolean isVillager();
/** /**
* Sets whether the zombie is a villager * Sets whether the zombie is a villager
* *
* @param flag Whether the zombie is a villager * @param flag Whether the zombie is a villager
* @deprecated Defaults to a {@link Villager.Profession#NORMAL} * @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated @Deprecated
public void setVillager(boolean flag); public void setVillager(boolean flag);
@ -39,7 +41,9 @@ public interface Zombie extends Monster {
* Sets whether the zombie is a villager * Sets whether the zombie is a villager
* *
* @param profession the profession of the villager or null to clear * @param profession the profession of the villager or null to clear
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public void setVillagerProfession(Villager.Profession profession); public void setVillagerProfession(Villager.Profession profession);
/** /**
@ -47,6 +51,8 @@ public interface Zombie extends Monster {
* zombie is a villager * zombie is a villager
* *
* @return the profession or null * @return the profession or null
* @deprecated Entity subtypes will be separate entities in a future Minecraft release
*/ */
@Deprecated
public Villager.Profession getVillagerProfession(); public Villager.Profession getVillagerProfession();
} }