Class QuiltScanner
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.modscanning.ModJarScanner
public final class QuiltScanner extends FabricFamilyScanner
quilt.mod.json-based scanning of Quilt-Minecraft mods.If
minecraft.environmentspecifiesclient, and the mod is not listed as a dependency of another mod, it is later excluded from the server pack. Sideness and id reading live in FabricFamilyScanner, which Fabric shares; only Quilt'sdepends-block shape is specific to this scanner.Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final StringscanAnnouncementprivate final RegexdependencyExclusionsprivate final Utilitiesutilities
-
Constructor Summary
Constructors Constructor Description QuiltScanner(ObjectMapper objectMapper, Utilities utilities)
-
Method Summary
Modifier and Type Method Description StringgetScanAnnouncement()final RegexgetDependencyExclusions()final UtilitiesgetUtilities()StringreadMinecraftConstraint(JsonNode modConfig)The quilt_loader.dependsentry forminecraft, in either declaration form, ornull.List<ModDependency>readDependencies(JsonNode modConfig, String modId)The non-platform mods this descriptor names as dependencies. List<String>readProvides(JsonNode modConfig, String modId)Quilt nests providesunderquilt_loader, with the same entry shape asdepends: either an object carrying anid, or the bare id as a string.-
Methods inherited from class de.griefed.serverpackcreator.api.modscanning.FabricFamilyScanner
read -
Methods inherited from class de.griefed.serverpackcreator.api.modscanning.JsonDescriptorScanner
getJarJson -
Methods inherited from class de.griefed.serverpackcreator.api.modscanning.DescriptorScanner
scan -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
QuiltScanner
QuiltScanner(ObjectMapper objectMapper, Utilities utilities)
- Parameters:
objectMapper- For JSON-parsing.utilities- Common utilities used across ServerPackCreator.
-
-
Method Detail
-
getScanAnnouncement
String getScanAnnouncement()
-
getDependencyExclusions
final Regex getDependencyExclusions()
-
getUtilities
final Utilities getUtilities()
-
readMinecraftConstraint
String readMinecraftConstraint(JsonNode modConfig)
The
quilt_loader.dependsentry forminecraft, in either declaration form, ornull. Excluded from readDependencies as the platform, but it is still the jar's own statement of what it targets.
-
readDependencies
List<ModDependency> readDependencies(JsonNode modConfig, String modId)
The non-platform mods this descriptor names as dependencies.
Abstract because the two formats disagree on the shape of the block, not merely its path. A descriptor declaring none must yield an empty list rather than throwing.
-
readProvides
List<String> readProvides(JsonNode modConfig, String modId)
Quilt nests
providesunderquilt_loader, with the same entry shape asdepends: either an object carrying anid, or the bare id as a string. Absent for most mods, which yields an empty list.
-
-
-
-