Class ResourceLocations

java.lang.Object
fr.alasdiablo.diolib.api.util.ResourceLocations

public class ResourceLocations extends Object
  • 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 id
      path - 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 prefix
      prefix - The prefix that is added to the RegistryName
      Returns:
      Return the addition of the registryName and the prefix