Package org.moddingx.libx.datagen
Class PackTarget
java.lang.Object
org.moddingx.libx.datagen.PackTarget
A pack target contains output paths for the different
pack types
. It also maintains a set of
registries that can be populated during the matching stages
.
A pack target does not need to support output on all pack types
.
A pack target can have other pack targets as parents, which makes it inherit their registry values.-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfind
(net.minecraft.server.packs.PackType type, net.minecraft.resources.ResourceLocation resourceId) Finds an existing resource in this pack target.name()
The name of the pack target.net.minecraft.data.PackOutput
Wraps the pack target as a vanillaPackOutput
.path
(net.minecraft.server.packs.PackType type) Gets the output path for this pack target.Provides access to the pack targets registries.system()
TheDatagenSystem
associated with this pack target.
-
Method Details
-
name
The name of the pack target. -
system
TheDatagenSystem
associated with this pack target. -
registries
Provides access to the pack targets registries. -
outputMap
-
path
Gets the output path for this pack target. -
find
public PackTarget.Resource find(net.minecraft.server.packs.PackType type, net.minecraft.resources.ResourceLocation resourceId) throws FileNotFoundException Finds an existing resource in this pack target. Resources can only be located in pack types, where this pack target supports output.- Throws:
FileNotFoundException
-
packOutput
public net.minecraft.data.PackOutput packOutput()Wraps the pack target as a vanillaPackOutput
.
-