From 72f4d16e6ff7c87a1a303c6c708d1f8a07b48240 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Thu, 29 Jul 2021 01:23:08 +0200 Subject: [PATCH] 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. --- .../com/garbagemule/MobArena/waves/MACreature.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/garbagemule/MobArena/waves/MACreature.java b/src/main/java/com/garbagemule/MobArena/waves/MACreature.java index c40248d..295edf2 100644 --- a/src/main/java/com/garbagemule/MobArena/waves/MACreature.java +++ b/src/main/java/com/garbagemule/MobArena/waves/MACreature.java @@ -47,6 +47,12 @@ public class MACreature 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) { this.name = name; this.plural = (plural != null) ? plural : name; @@ -55,6 +61,12 @@ public class MACreature 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) { this(name, name + "s", type); }