-
Notifications
You must be signed in to change notification settings - Fork 7
Virtual resource packs
Frontrider edited this page Oct 17, 2019
·
1 revision
HashMap<String, InputStreamProvider> map = new HashMap<>();
map.put("assets/minecraft/blockstates/cobblestone.json", InputStreamProvider.of(() -> "{\n" +
" \"variants\": {\n" +
" \"\": { \"model\": \"block/sandstone\" }\n" +
" }\n" +
"}\n"));
VirtualResourcePackManager.INSTANCE.addPack(
new VirtualResourcePack(new Identifier("cotton", "test"), map),
Collections.singleton(ResourceType.CLIENT_RESOURCES)
);