private InputStream getResourceStream(ResourceLocation resourceLocation) { // TODO Check this return addon .getClass() .getResourceAsStream( String.format( "/assets/%s/%s", addon.getDescription().getIdentifier(), resourceLocation.getResourcePath())); }
@Override public String getPackName() { return addon.getDescription().getIdentifier(); }
public AddonResourcePack(Addon addon) { this.addon = addon; domains.add(addon.getDescription().getIdentifier()); }