mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
When deprecating, the alternative should be provided.
This commit is contained in:
parent
41fe211919
commit
bddceeaf51
1 changed files with 4 additions and 4 deletions
|
@ -49,14 +49,14 @@ public class CraftCreatureSpawner extends CraftBlockState implements CreatureSpa
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated Use getCreatureType() instead.
|
||||||
*/
|
*/
|
||||||
public MobType getMobType() {
|
public MobType getMobType() {
|
||||||
return MobType.fromName(spawner.h);
|
return MobType.fromName(spawner.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated Use setCreatureType() instead.
|
||||||
*/
|
*/
|
||||||
public void setMobType(MobType mobType) {
|
public void setMobType(MobType mobType) {
|
||||||
spawner.h = mobType.getName();
|
spawner.h = mobType.getName();
|
||||||
|
@ -64,14 +64,14 @@ public class CraftCreatureSpawner extends CraftBlockState implements CreatureSpa
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated Use getCreatureTypeId() instead.
|
||||||
*/
|
*/
|
||||||
public String getMobTypeId() {
|
public String getMobTypeId() {
|
||||||
return spawner.h;
|
return spawner.h;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated Use setCreatureTypeId() instead.
|
||||||
*/
|
*/
|
||||||
public void setMobTypeId(String mobType) {
|
public void setMobTypeId(String mobType) {
|
||||||
// Verify input
|
// Verify input
|
||||||
|
|
Loading…
Add table
Reference in a new issue