Class VirtualAssetPack
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
dev.latvian.mods.kubejs.script.data.VirtualResourcePack
dev.latvian.mods.kubejs.script.data.VirtualAssetPack
- All Implemented Interfaces:
KubeEvent,KubeAssetGenerator,KubeResourceGenerator,ExportablePackResources,AutoCloseable,net.minecraft.server.packs.PackResources,net.neoforged.neoforge.common.extensions.IPackResourcesExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
net.minecraft.server.packs.PackResources.ResourceOutput -
Field Summary
Fields inherited from class dev.latvian.mods.kubejs.script.data.VirtualResourcePack
component, info, packType, registries, scriptType, stageFields inherited from interface dev.latvian.mods.kubejs.generator.KubeAssetGenerator
CUBE_ALL_BLOCK_MODEL, CUBE_BLOCK_MODEL, GENERATED_ITEM_MODEL, HANDHELD_ITEM_MODELFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
ConstructorsConstructorDescriptionVirtualAssetPack(GeneratedDataStage stage, Supplier<RegistryAccessContainer> registries) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()loadTexture(net.minecraft.resources.ResourceLocation id) voidsounds(String namespace, Consumer<SoundsGenerator> consumer) voidtexture(net.minecraft.resources.ResourceLocation target, LoadedTexture texture) Methods inherited from class dev.latvian.mods.kubejs.script.data.VirtualResourcePack
add, export, exportPath, getGenerated, getMetadataSection, getNamespaces, getRegistries, getResource, getRootResource, listResources, packId, reset, toStringMethods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, locationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.IPackResourcesExtension
isHiddenMethods inherited from interface dev.latvian.mods.kubejs.generator.KubeAssetGenerator
blockModel, blockState, defaultHandheldItemModel, defaultItemModel, itemModel, mask, multipartState, particle, stencilMethods inherited from interface dev.latvian.mods.kubejs.event.KubeEvent
afterPosted, cancel, cancel, defaultExitValue, exit, exit, getExitValueType, mapExitValue, success, successMethods inherited from interface dev.latvian.mods.kubejs.generator.KubeResourceGenerator
add, getGenerated, getRegistries, json, textMethods inherited from interface net.minecraft.server.packs.PackResources
knownPackInfo, location
-
Constructor Details
-
VirtualAssetPack
-
-
Method Details
-
loadTexture
- Specified by:
loadTexturein interfaceKubeAssetGenerator
-
texture
- Specified by:
texturein interfaceKubeAssetGenerator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacenet.minecraft.server.packs.PackResources- Overrides:
closein classVirtualResourcePack
-
sounds
- Specified by:
soundsin interfaceKubeAssetGenerator
-
flush
public void flush()- Specified by:
flushin interfaceKubeResourceGenerator
-