Deprecate old MACreature constructors for removal.
The new constructor and registration method pair is what other plugins should be using. They provide a slightly cleaner interface, and we don't need so many different ways to do the same thing.
This commit is contained in:
@@ -47,6 +47,12 @@ public class MACreature
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This constructor will be removed in a future update.
|
||||||
|
* Use {@link #MACreature(EntityType, String)} instead, and register
|
||||||
|
* with {@link #register(String, MACreature)}.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public MACreature(String name, String plural, EntityType type) {
|
public MACreature(String name, String plural, EntityType type) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.plural = (plural != null) ? plural : name;
|
this.plural = (plural != null) ? plural : name;
|
||||||
@@ -55,6 +61,12 @@ public class MACreature
|
|||||||
register();
|
register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This constructor will be removed in a future update.
|
||||||
|
* Use {@link #MACreature(EntityType, String)} instead, and register
|
||||||
|
* with {@link #register(String, MACreature)}.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
public MACreature(String name, EntityType type) {
|
public MACreature(String name, EntityType type) {
|
||||||
this(name, name + "s", type);
|
this(name, name + "s", type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user