Skip to content

Commit

Permalink
Change Namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ktpatient committed May 9, 2024
1 parent 9262a79 commit 8e279ac
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 37 deletions.
19 changes: 2 additions & 17 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.leclowndu93150.invertedbed.block;
package com.portingdeadmods.invertedbed.block;


import net.minecraft.ChatFormatting;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 8e279ac

Please sign in to comment.