Skip to content

Commit

Permalink
Change id to marioverse
Browse files Browse the repository at this point in the history
  • Loading branch information
WenXin20 committed Sep 2, 2024
1 parent 64b873a commit 4cbfc88
Show file tree
Hide file tree
Showing 1,573 changed files with 25,201 additions and 25,201 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs {
configureEach {
systemProperty 'forge.logging.markers', 'REGISTRIES'
systemProperty 'forge.logging.console.level', 'debug'
programArguments '-mixin.config=warp_pipes.mixins.json'
programArguments '-mixin.config=marioverse.mixins.json'

modSource project.sourceSets.main
}
Expand Down Expand Up @@ -96,7 +96,7 @@ runs {
dataGenerator true
gameTest false
systemProperty 'forge.enabledGameTestNamespaces', project.mod_id
programArguments.addAll '--mod', 'warp_pipes', '--all', '--output',
programArguments.addAll '--mod', 'marioverse', '--all', '--output',
file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
}
}
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ loader_version_range=[4,)
minecraft_version=1.21.1
minecraft_version_range=[1.21,1.21.1)

mod_id=warp_pipes
mod_name=WenXin's Warp Pipes
mod_version=2.2.4-neoforge
mod_group_id=com.wenxin2.warp_pipes
mod_id=marioverse
mod_name=WenXin's Marioverse
mod_version=0.0.1-neoforge
mod_group_id=com.wenxin2.marioverse
mod_license=GNU GPLv3
mod_authors=WenXin2
mod_description=This mod adds a new form of transportation from the Mario universe, the Warp Pipe!
mixin_location=warp_pipes.mixins.json
mixin_location=marioverse.mixins.json

architectury_api_version=419699:5553800
cloth_config_version=348521:5623420
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/wenxin2/marioverse/MixinConnector.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.wenxin2.marioverse;

import org.spongepowered.asm.mixin.Mixins;
import org.spongepowered.asm.mixin.connect.IMixinConnector;

public class MixinConnector implements IMixinConnector {
@Override
public void connect() {
Mixins.addConfigurations("marioverse.mixins.json");
}
}
69 changes: 69 additions & 0 deletions src/main/java/com/wenxin2/marioverse/WarpPipes.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
package com.wenxin2.marioverse;

import com.mojang.logging.LogUtils;
import com.wenxin2.marioverse.event_handlers.WarpEventHandlers;
import com.wenxin2.marioverse.init.ClientSetupHandler;
import com.wenxin2.marioverse.init.Config;
import com.wenxin2.marioverse.init.ModCreativeTabs;
import com.wenxin2.marioverse.init.ModRegistry;
import com.wenxin2.marioverse.init.SoundRegistry;
import com.wenxin2.marioverse.items.data_components.LinkerDataComponents;
import net.minecraft.core.registries.Registries;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.inventory.MenuType;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.registries.DeferredRegister;
import org.slf4j.Logger;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(Marioverse.MODID)
public class Marioverse
{
// Define mod id in a common place for everything to reference
public static final String MODID = "marioverse";
// Directly reference a slf4j logger
private static final Logger LOGGER = LogUtils.getLogger();
// Create a Deferred Register to hold blocks/items which will all be registered under the "marioverse" namespace
public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(MODID);
public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MODID);

public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(Registries.BLOCK_ENTITY_TYPE, Marioverse.MODID);
public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(Registries.MENU, Marioverse.MODID);
public static final DeferredRegister<SoundEvent> SOUNDS = DeferredRegister.create(Registries.SOUND_EVENT, Marioverse.MODID);

// Bus for Forge Events
public static final IEventBus FORGE_BUS = NeoForge.EVENT_BUS;

public Marioverse(IEventBus bus, Dist dist, ModContainer container)
{
// Register the Deferred Register to the mod event bus so blocks/items get registered
BLOCKS.register(bus);
ITEMS.register(bus);
BLOCK_ENTITIES.register(bus);
MENUS.register(bus);
SOUNDS.register(bus);
LinkerDataComponents.COMPONENTS.register(bus);
ModCreativeTabs.TABS.register(bus);

ModRegistry.init();
SoundRegistry.init();
Config.register(container);

if (dist.isClient()) {
bus.addListener(ClientSetupHandler::registerBlockEntityRenderers);
Config.registerClient(container);
}

// WarpEventHandlers.register();
// PipeBubblesSoundHandler.init();

// Register ourselves for server and other game events we are interested in
NeoForge.EVENT_BUS.addListener(WarpEventHandlers::onJoinWorld);
NeoForge.EVENT_BUS.addListener(WarpEventHandlers::onPlayerRightClick);
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.wenxin2.warp_pipes.blocks;
package com.wenxin2.marioverse.blocks;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.wenxin2.warp_pipes.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.warp_pipes.init.Config;
import com.wenxin2.warp_pipes.init.ModRegistry;
import com.wenxin2.warp_pipes.init.ModTags;
import com.wenxin2.warp_pipes.items.LinkerItem;
import com.wenxin2.marioverse.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.marioverse.init.Config;
import com.wenxin2.marioverse.init.ModRegistry;
import com.wenxin2.marioverse.init.ModTags;
import com.wenxin2.marioverse.items.LinkerItem;
import java.util.Collection;
import java.util.Map;
import net.minecraft.Util;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.wenxin2.warp_pipes.blocks;
package com.wenxin2.marioverse.blocks;

import com.wenxin2.warp_pipes.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.warp_pipes.init.Config;
import com.wenxin2.warp_pipes.init.ModRegistry;
import com.wenxin2.marioverse.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.marioverse.init.Config;
import com.wenxin2.marioverse.init.ModRegistry;
import java.nio.channels.Pipe;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.wenxin2.warp_pipes.blocks;
package com.wenxin2.marioverse.blocks;

import com.mojang.serialization.MapCodec;
import com.wenxin2.warp_pipes.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.warp_pipes.init.Config;
import com.wenxin2.warp_pipes.init.ModRegistry;
import com.wenxin2.warp_pipes.init.SoundRegistry;
import com.wenxin2.warp_pipes.integration.CompatRegistry;
import com.wenxin2.warp_pipes.inventory.WarpPipeMenu;
import com.wenxin2.marioverse.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.marioverse.init.Config;
import com.wenxin2.marioverse.init.ModRegistry;
import com.wenxin2.marioverse.init.SoundRegistry;
import com.wenxin2.marioverse.integration.CompatRegistry;
import com.wenxin2.marioverse.inventory.WarpPipeMenu;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.wenxin2.warp_pipes.blocks;
package com.wenxin2.marioverse.blocks;

import com.wenxin2.warp_pipes.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.warp_pipes.init.Config;
import com.wenxin2.warp_pipes.init.ModRegistry;
import com.wenxin2.marioverse.blocks.entities.WarpPipeBlockEntity;
import com.wenxin2.marioverse.init.Config;
import com.wenxin2.marioverse.init.ModRegistry;
import java.util.Optional;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down
Loading

0 comments on commit 4cbfc88

Please sign in to comment.