use of com.teamwizardry.wizardry.api.capability.world.WizardryWorld in project Wizardry by TeamWizardry.
the class WizardryNemezManager method getOrCreateNemezDrive.
public static NemezTracker getOrCreateNemezDrive(World world, UUID uuid) {
WizardryWorld worldCap = WizardryWorldCapability.get(world);
HashMap<UUID, NemezTracker> nemezDrives = worldCap.getEntityNemezDrives();
if (nemezDrives.containsKey(uuid))
return nemezDrives.get(uuid);
return worldCap.addNemezDrive(uuid, new NemezTracker());
}
Aggregations