Package org.moddingx.libx.datagen
Class DatagenSystem.PackTargetBuilder
java.lang.Object
org.moddingx.libx.datagen.DatagenSystem.PackTargetBuilder
- Enclosing class:
- DatagenSystem
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the resultingPackTarget
.resolveOutput
(net.minecraft.server.packs.PackType type, String... subPath) Changes the output path for the givenPackType
byresolving
the given sub-path to the current output path.Adds a path for resource lookup throughPackTarget.find(PackType, ResourceLocation)
.Sets the output path for the givenPackType
.unsupported
(net.minecraft.server.packs.PackType type) Indicates, that thePackTarget
can't output the givenPackType
.
-
Method Details
-
setOutput
public DatagenSystem.PackTargetBuilder setOutput(net.minecraft.server.packs.PackType type, Path path) Sets the output path for the givenPackType
. -
resolveOutput
public DatagenSystem.PackTargetBuilder resolveOutput(net.minecraft.server.packs.PackType type, String... subPath) Changes the output path for the givenPackType
byresolving
the given sub-path to the current output path. This also adds a resource prefix for resource lookup through thePackTarget.find(PackType, ResourceLocation)
method. -
unsupported
Indicates, that thePackTarget
can't output the givenPackType
. -
resources
public DatagenSystem.PackTargetBuilder resources(net.minecraft.server.packs.PackType type, Path path) Adds a path for resource lookup throughPackTarget.find(PackType, ResourceLocation)
. -
build
Builds the resultingPackTarget
.
-