2013-04-22 16:26:44 +02:00
|
|
|
package com.massivecraft.factions.entity;
|
|
|
|
|
|
|
|
import com.massivecraft.factions.Const;
|
|
|
|
import com.massivecraft.factions.Factions;
|
2014-06-04 14:02:23 +02:00
|
|
|
import com.massivecraft.massivecore.Aspect;
|
|
|
|
import com.massivecraft.massivecore.MassiveCore;
|
2013-04-22 16:26:44 +02:00
|
|
|
|
2013-04-24 16:27:47 +02:00
|
|
|
public class UConfColls extends XColls<UConfColl, UConf>
|
2013-04-22 16:26:44 +02:00
|
|
|
{
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// INSTANCE & CONSTRUCT
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
private static UConfColls i = new UConfColls();
|
|
|
|
public static UConfColls get() { return i; }
|
|
|
|
|
|
|
|
// -------------------------------------------- //
|
|
|
|
// OVERRIDE: COLLS
|
|
|
|
// -------------------------------------------- //
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public UConfColl createColl(String collName)
|
|
|
|
{
|
|
|
|
return new UConfColl(collName);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public Aspect getAspect()
|
|
|
|
{
|
|
|
|
return Factions.get().getAspect();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getBasename()
|
|
|
|
{
|
2013-11-11 09:31:04 +01:00
|
|
|
return Const.COLLECTION_UCONF;
|
2013-04-22 16:26:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public UConf get2(Object worldNameExtractable)
|
|
|
|
{
|
|
|
|
UConfColl coll = this.get(worldNameExtractable);
|
|
|
|
if (coll == null) return null;
|
2014-06-04 14:02:23 +02:00
|
|
|
return coll.get(MassiveCore.INSTANCE);
|
2013-04-22 16:26:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|