Package net.minecraft.resource
Interface ResourcePackProvider
- All Known Implementing Classes:
ClientBuiltinResourcePackProvider
,FileResourcePackProvider
,VanillaDataPackProvider
public interface ResourcePackProvider
A resource pack provider provides
ResourcePackProfile
s, usually to
ResourcePackManager
s.- Mappings:
Namespace Name official adk
intermediary net/minecraft/class_3285
named net/minecraft/resource/ResourcePackProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoid
register(Consumer<ResourcePackProfile> profileAdder, ResourcePackProfile.Factory factory)
Register resource pack profiles created with thefactory
to theprofileAdder
.
-
Method Details
-
register
Register resource pack profiles created with thefactory
to theprofileAdder
.- Parameters:
profileAdder
- the profile adder that accepts created resource pack profilesfactory
- the factory that creates the resource pack profiles- See Also:
ResourcePackProfile.of(java.lang.String, boolean, java.util.function.Supplier<net.minecraft.resource.ResourcePack>, net.minecraft.resource.ResourcePackProfile.Factory, net.minecraft.resource.ResourcePackProfile.InsertionPosition, net.minecraft.resource.ResourcePackSource)
- Mappings:
Namespace Name Mixin selector official a
Ladk;a(Ljava/util/function/Consumer;Ladg$a;)V
intermediary method_14453
Lnet/minecraft/class_3285;method_14453(Ljava/util/function/Consumer;Lnet/minecraft/class_3288$class_5351;)V
named register
Lnet/minecraft/resource/ResourcePackProvider;register(Ljava/util/function/Consumer;Lnet/minecraft/resource/ResourcePackProfile$Factory;)V
-