From 8e279acb7d79615192b6297bfa2d3be9b95b48b6 Mon Sep 17 00:00:00 2001 From: ktpatient <167013520+ktpatient@users.noreply.github.com> Date: Thu, 9 May 2024 14:38:55 +0100 Subject: [PATCH] Change Namespace --- gradle.properties | 19 ++----------------- .../invertedbed/IBClientEvents.java | 9 +++------ .../invertedbed/IBServerEvents.java | 9 +++------ .../invertedbed/Main.java | 6 +++--- .../invertedbed/block/InvertedBedBlock.java | 2 +- .../block/InvertedBedBlockEntity.java | 4 ++-- .../block/InvertedBedRenderer.java | 4 ++-- 7 files changed, 16 insertions(+), 37 deletions(-) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/IBClientEvents.java (73%) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/IBServerEvents.java (88%) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/Main.java (95%) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/block/InvertedBedBlock.java (99%) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/block/InvertedBedBlockEntity.java (91%) rename src/main/java/com/{leclowndu93150 => portingdeadmods}/invertedbed/block/InvertedBedRenderer.java (98%) diff --git a/gradle.properties b/gradle.properties index c68185c..f4e7b94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,37 +1,22 @@ -# Sets default memory used for gradle commands. Can be overridden by user or command line properties. -#org.gradle.jvmargs= org.gradle.daemon=false org.gradle.debug=false -#read more on this at https://github.com/neoforged/NeoGradle/blob/NG_7.0/README.md#apply-parchment-mappings -# you can also find the latest versions at: https://parchmentmc.org/docs/getting-started neogradle.subsystems.parchment.minecraftVersion=1.20.4 neogradle.subsystems.parchment.mappingsVersion=2024.04.14 + # Environment Properties -# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge -# The Minecraft version must agree with the Neo version to get a valid artifact minecraft_version=1.20.6 - minecraft_version_range=[1.20.6,1.21) - neo_version=20.6.18-beta - neo_version_range=[20.4,) - loader_version_range=[2,) ## Mod Properties mod_id=invertedbed - mod_name=Inverted Bed - mod_license=MIT - mod_version=1.0.1 - -mod_group_id=com.leclowndu93150.invertedbed - +mod_group_id=com.portingdeadmods.invertedbed mod_authors=Leclowndu93150, Buzz135 - mod_description=Adds a bed that skips the day diff --git a/src/main/java/com/leclowndu93150/invertedbed/IBClientEvents.java b/src/main/java/com/portingdeadmods/invertedbed/IBClientEvents.java similarity index 73% rename from src/main/java/com/leclowndu93150/invertedbed/IBClientEvents.java rename to src/main/java/com/portingdeadmods/invertedbed/IBClientEvents.java index 5f688d8..088a3d7 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/IBClientEvents.java +++ b/src/main/java/com/portingdeadmods/invertedbed/IBClientEvents.java @@ -1,20 +1,17 @@ -package com.leclowndu93150.invertedbed; +package com.portingdeadmods.invertedbed; -import com.leclowndu93150.invertedbed.block.InvertedBedRenderer; +import com.portingdeadmods.invertedbed.block.InvertedBedRenderer; import net.neoforged.api.distmarker.Dist; import net.neoforged.bus.api.SubscribeEvent; import net.neoforged.fml.common.EventBusSubscriber; -import net.neoforged.fml.common.Mod; import net.neoforged.neoforge.client.event.EntityRenderersEvent; -import static com.leclowndu93150.invertedbed.Main.*; - @EventBusSubscriber(modid = Main.MODID, value = Dist.CLIENT, bus = EventBusSubscriber.Bus.MOD) public class IBClientEvents { @SubscribeEvent public static void registerBERenderer(EntityRenderersEvent.RegisterRenderers event) { - event.registerBlockEntityRenderer(INVERTED_BED.get() , InvertedBedRenderer::new); + event.registerBlockEntityRenderer(Main.INVERTED_BED.get() , InvertedBedRenderer::new); } @SubscribeEvent diff --git a/src/main/java/com/leclowndu93150/invertedbed/IBServerEvents.java b/src/main/java/com/portingdeadmods/invertedbed/IBServerEvents.java similarity index 88% rename from src/main/java/com/leclowndu93150/invertedbed/IBServerEvents.java rename to src/main/java/com/portingdeadmods/invertedbed/IBServerEvents.java index e84f66a..9776916 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/IBServerEvents.java +++ b/src/main/java/com/portingdeadmods/invertedbed/IBServerEvents.java @@ -1,20 +1,17 @@ -package com.leclowndu93150.invertedbed; +package com.portingdeadmods.invertedbed; -import com.leclowndu93150.invertedbed.block.InvertedBedBlock; +import com.portingdeadmods.invertedbed.block.InvertedBedBlock; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.level.block.state.BlockState; import net.neoforged.bus.api.Event; import net.neoforged.bus.api.SubscribeEvent; import net.neoforged.fml.common.EventBusSubscriber; -import net.neoforged.fml.common.Mod; import net.neoforged.neoforge.event.entity.player.PlayerWakeUpEvent; import net.neoforged.neoforge.event.entity.player.SleepingLocationCheckEvent; import net.neoforged.neoforge.event.entity.player.SleepingTimeCheckEvent; -import static com.leclowndu93150.invertedbed.Main.MODID; - -@EventBusSubscriber(modid = MODID) +@EventBusSubscriber(modid = Main.MODID) public class IBServerEvents { @SubscribeEvent public static void onTrySleep(PlayerWakeUpEvent event) { diff --git a/src/main/java/com/leclowndu93150/invertedbed/Main.java b/src/main/java/com/portingdeadmods/invertedbed/Main.java similarity index 95% rename from src/main/java/com/leclowndu93150/invertedbed/Main.java rename to src/main/java/com/portingdeadmods/invertedbed/Main.java index c58d6d0..192245e 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/Main.java +++ b/src/main/java/com/portingdeadmods/invertedbed/Main.java @@ -1,7 +1,7 @@ -package com.leclowndu93150.invertedbed; +package com.portingdeadmods.invertedbed; -import com.leclowndu93150.invertedbed.block.InvertedBedBlock; -import com.leclowndu93150.invertedbed.block.InvertedBedBlockEntity; +import com.portingdeadmods.invertedbed.block.InvertedBedBlock; +import com.portingdeadmods.invertedbed.block.InvertedBedBlockEntity; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.core.registries.Registries; import net.minecraft.network.chat.Component; diff --git a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlock.java b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlock.java similarity index 99% rename from src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlock.java rename to src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlock.java index 31d8604..d396f7e 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlock.java +++ b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlock.java @@ -1,4 +1,4 @@ -package com.leclowndu93150.invertedbed.block; +package com.portingdeadmods.invertedbed.block; import net.minecraft.ChatFormatting; diff --git a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlockEntity.java b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlockEntity.java similarity index 91% rename from src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlockEntity.java rename to src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlockEntity.java index 949947f..8b8a29b 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedBlockEntity.java +++ b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedBlockEntity.java @@ -1,6 +1,6 @@ -package com.leclowndu93150.invertedbed.block; +package com.portingdeadmods.invertedbed.block; -import com.leclowndu93150.invertedbed.Main; +import com.portingdeadmods.invertedbed.Main; import net.minecraft.core.BlockPos; import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket; import net.minecraft.world.item.DyeColor; diff --git a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedRenderer.java b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedRenderer.java similarity index 98% rename from src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedRenderer.java rename to src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedRenderer.java index a4caea3..a5d9611 100644 --- a/src/main/java/com/leclowndu93150/invertedbed/block/InvertedBedRenderer.java +++ b/src/main/java/com/portingdeadmods/invertedbed/block/InvertedBedRenderer.java @@ -1,6 +1,6 @@ -package com.leclowndu93150.invertedbed.block; +package com.portingdeadmods.invertedbed.block; -import com.leclowndu93150.invertedbed.Main; +import com.portingdeadmods.invertedbed.Main; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import com.mojang.math.Axis;