Package fr.alasdiablo.diolib.api.util
Class ResourceLocations
java.lang.Object
fr.alasdiablo.diolib.api.util.ResourceLocations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull net.minecraft.resources.ResourceLocationCreate an instance of a ResourceLocationstatic net.minecraft.resources.ResourceLocationsetPrefixOnResourceLocation(net.minecraft.resources.ResourceLocation registryName, String prefix) Utils use to add a prefix to a registryName
-
Constructor Details
-
ResourceLocations
public ResourceLocations()
-
-
Method Details
-
of
@Contract("_, _ -> new") @NotNull public static @NotNull net.minecraft.resources.ResourceLocation of(String domain, String path) Create an instance of a ResourceLocation- Parameters:
domain- Mod idpath- path to the resource- Returns:
- ResourceLocation containing the domain and the path
-
setPrefixOnResourceLocation
public static net.minecraft.resources.ResourceLocation setPrefixOnResourceLocation(net.minecraft.resources.ResourceLocation registryName, String prefix) Utils use to add a prefix to a registryName- Parameters:
registryName- The RegistryName, which receives the prefixprefix- The prefix that is added to the RegistryName- Returns:
- Return the addition of the registryName and the prefix
-