Skip to content

Commit

Permalink
Added Optional 3D Resource Pack by Lemo
Browse files Browse the repository at this point in the history
 - Added 3D MCDAR as an optional resource pack until its completion, at which time it will become the default textures and models
  • Loading branch information
chronosacaria committed Apr 9, 2024
1 parent 40b94de commit a2b1af6
Show file tree
Hide file tree
Showing 80 changed files with 4,810 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/java/chronosacaria/mcdar/client/McdarClient.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,35 @@
package chronosacaria.mcdar.client;

import chronosacaria.mcdar.Mcdar;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
import net.fabricmc.fabric.api.resource.ResourcePackActivationType;
import net.fabricmc.loader.api.FabricLoader;
import net.fabricmc.loader.api.ModContainer;
import net.minecraft.util.Identifier;


@Environment(EnvType.CLIENT)
public class McdarClient implements ClientModInitializer {
@SuppressWarnings({"deprecation", "Note: ResourceManagerHelper.registerBuiltinResourcePack isn't actually deprecated, but overloaded."})
private static void loadOptionalResourcePack(ModContainer modContainer) {
ResourceManagerHelper.registerBuiltinResourcePack(
new Identifier(Mcdar.MOD_ID, "3dmcdar"),
modContainer,
"3D MCDAR",
ResourcePackActivationType.NORMAL);
}

@Override
public void onInitializeClient() {

//SummonedEntityRenderRegistry.register();
SummonedEntityRenderRegistry.init();

// Optional Resource Pack
FabricLoader.getInstance().getModContainer(Mcdar.MOD_ID).ifPresent(
McdarClient::loadOptionalResourcePack);
}
}
Loading

0 comments on commit a2b1af6

Please sign in to comment.