MinionList related rework.

This commit is contained in:
MobiusDevelopment
2020-05-17 11:27:30 +00:00
parent 1464b1ab8b
commit ecd4ea66e4
20 changed files with 175 additions and 245 deletions

View File

@ -36,17 +36,17 @@ import org.l2jmobius.gameserver.model.holders.MinionHolder;
*/
public class MinionList
{
protected final MonsterInstance _master;
private final MonsterInstance _master;
private final List<MonsterInstance> _spawnedMinions = new CopyOnWriteArrayList<>();
private final List<ScheduledFuture<?>> _respawnTasks = new CopyOnWriteArrayList<>();
public MinionList(MonsterInstance pMaster)
public MinionList(MonsterInstance master)
{
if (pMaster == null)
if (master == null)
{
throw new NullPointerException("MinionList: master is null");
throw new NullPointerException("MinionList: Master is null!");
}
_master = pMaster;
_master = master;
}
/**