Make Main Menu optional
@ -15,8 +15,13 @@ import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
|
|||||||
import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
|
import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
|
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
|
||||||
import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRendererRegistrationCallback;
|
import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRendererRegistrationCallback;
|
||||||
|
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.client.render.RenderLayer;
|
import net.minecraft.client.render.RenderLayer;
|
||||||
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
|
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
|
||||||
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
@Environment(EnvType.CLIENT)
|
@Environment(EnvType.CLIENT)
|
||||||
@ -37,6 +42,10 @@ public class JoyClient implements ClientModInitializer {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ParticleFactoryRegistry.getInstance().register(JoyParticles.TOTEM_OF_PRIDE_PARTICLE, TotemOfPrideParticle.Factory::new);
|
ParticleFactoryRegistry.getInstance().register(JoyParticles.TOTEM_OF_PRIDE_PARTICLE, TotemOfPrideParticle.Factory::new);
|
||||||
|
|
||||||
|
final ModContainer self = FabricLoader.getInstance().getModContainer(Joy.MOD_ID).orElseThrow();
|
||||||
|
|
||||||
|
ResourceManagerHelper.registerBuiltinResourcePack(JoyUtil.id("menu"), self, Text.of("Joy's Main Menu & HUD"), ResourcePackActivationType.DEFAULT_ENABLED);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBedBlockRenderLayers() {
|
private static void registerBedBlockRenderLayers() {
|
||||||
|
13
src/main/java/gay/pridecraft/joy/JoyUtil.java
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package gay.pridecraft.joy;
|
||||||
|
|
||||||
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Ampflower
|
||||||
|
* @since 1.0.0
|
||||||
|
**/
|
||||||
|
public final class JoyUtil {
|
||||||
|
public static Identifier id(String name) {
|
||||||
|
return Identifier.of(Joy.MOD_ID, name);
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 852 KiB After Width: | Height: | Size: 852 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 904 KiB After Width: | Height: | Size: 904 KiB |
Before Width: | Height: | Size: 640 KiB After Width: | Height: | Size: 640 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
6
src/main/resources/resourcepacks/menu/pack.mcmeta
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"pack": {
|
||||||
|
"pack_format": 34,
|
||||||
|
"description": "From §cPr§6id§eep§2ac§9k 7§5.0§r"
|
||||||
|
}
|
||||||
|
}
|
BIN
src/main/resources/resourcepacks/menu/pack.png
Normal file
After Width: | Height: | Size: 65 KiB |