Package net.minecraft.resource
Interface ResourcePackProfile.Factory
- Enclosing class:
- ResourcePackProfile
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for resource pack profiles, somewhat resembling the constructor
of
ResourcePackProfile
but allowing more customization.- Mappings:
Namespace Name official adg$a
intermediary net/minecraft/class_3288$class_5351
named net/minecraft/resource/ResourcePackProfile$Factory
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition initialPosition, ResourcePackSource source)
Creates a proper resource pack profile from the given parameters.
-
Method Details
-
create
@Nullable @Nullable ResourcePackProfile create(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition initialPosition, ResourcePackSource source)Creates a proper resource pack profile from the given parameters.- API Note:
- Instead of calling this method, users usually call
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)
, which fills some of the parameters for a call to this method. - Mappings:
Namespace Name Mixin selector official create
Ladg$a;create(Ljava/lang/String;Los;ZLjava/util/function/Supplier;Lada;Ladg$b;Ladj;)Ladg;
intermediary create
Lnet/minecraft/class_3288$class_5351;create(Ljava/lang/String;Lnet/minecraft/class_2561;ZLjava/util/function/Supplier;Lnet/minecraft/class_3272;Lnet/minecraft/class_3288$class_3289;Lnet/minecraft/class_5352;)Lnet/minecraft/class_3288;
named create
Lnet/minecraft/resource/ResourcePackProfile$Factory;create(Ljava/lang/String;Lnet/minecraft/text/Text;ZLjava/util/function/Supplier;Lnet/minecraft/resource/metadata/PackResourceMetadata;Lnet/minecraft/resource/ResourcePackProfile$InsertionPosition;Lnet/minecraft/resource/ResourcePackSource;)Lnet/minecraft/resource/ResourcePackProfile;
-