Rename to CE-modern, a 1.7.10 port of CE
Position this mod as a port of CE instead of BCx. - Rename the mod to CE-modern (modid cemodern) and the package to net.kanawo.cemodern; the main class is now CEModern. - Move assets to assets/cemodern and rename the lang key and EMC save data to match. - Describe the mod as a port of CE in the README and mcmod.info. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28b1841c2a
commit
af0afcb98f
20 files changed
+49
-49
No files matched your search
+7
-7
@@ -1,4 +1,4 @@
|
||||
package net.kanawo.bcxmodern;
|
||||
package net.kanawo.cemodern;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@@ -9,20 +9,20 @@ import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
@Mod(
|
||||
modid = BCxModern.MODID,
|
||||
modid = CEModern.MODID,
|
||||
version = Tags.VERSION,
|
||||
name = "BCx-modern",
|
||||
name = "CE-modern",
|
||||
acceptedMinecraftVersions = "[1.7.10]",
|
||||
dependencies = "required-after:BuildCraft|Builders;required-after:ProjectE")
|
||||
public class BCxModern {
|
||||
public class CEModern {
|
||||
|
||||
public static final String MODID = "bcxmodern";
|
||||
public static final String MODID = "cemodern";
|
||||
public static final Logger LOG = LogManager.getLogger(MODID);
|
||||
|
||||
@Mod.Instance(MODID)
|
||||
public static BCxModern instance;
|
||||
public static CEModern instance;
|
||||
|
||||
@SidedProxy(clientSide = "net.kanawo.bcxmodern.ClientProxy", serverSide = "net.kanawo.bcxmodern.CommonProxy")
|
||||
@SidedProxy(clientSide = "net.kanawo.cemodern.ClientProxy", serverSide = "net.kanawo.cemodern.CommonProxy")
|
||||
public static CommonProxy proxy;
|
||||
|
||||
@Mod.EventHandler
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package net.kanawo.bcxmodern;
|
||||
package net.kanawo.cemodern;
|
||||
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
|
||||
import buildcraft.core.render.RenderBuilder;
|
||||
import cpw.mods.fml.client.registry.ClientRegistry;
|
||||
+7
-7
@@ -1,9 +1,9 @@
|
||||
package net.kanawo.bcxmodern;
|
||||
package net.kanawo.cemodern;
|
||||
|
||||
import net.kanawo.bcxmodern.block.BlockEMCBuilder;
|
||||
import net.kanawo.bcxmodern.block.SchematicEMCBuilder;
|
||||
import net.kanawo.bcxmodern.gui.GuiHandler;
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.block.BlockEMCBuilder;
|
||||
import net.kanawo.cemodern.block.SchematicEMCBuilder;
|
||||
import net.kanawo.cemodern.gui.GuiHandler;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import buildcraft.BuildCraftBuilders;
|
||||
@@ -21,11 +21,11 @@ public class CommonProxy {
|
||||
public void preInit(FMLPreInitializationEvent event) {
|
||||
emcBuilderBlock = new BlockEMCBuilder();
|
||||
GameRegistry.registerBlock(emcBuilderBlock, "emcBuilder");
|
||||
GameRegistry.registerTileEntity(TileEMCBuilder.class, BCxModern.MODID + ":EMCBuilder");
|
||||
GameRegistry.registerTileEntity(TileEMCBuilder.class, CEModern.MODID + ":EMCBuilder");
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent event) {
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(BCxModern.instance, new GuiHandler());
|
||||
NetworkRegistry.INSTANCE.registerGuiHandler(CEModern.instance, new GuiHandler());
|
||||
|
||||
BuilderAPI.schematicRegistry.registerSchematicBlock(emcBuilderBlock, SchematicEMCBuilder.class);
|
||||
|
||||
+6
-6
@@ -1,8 +1,8 @@
|
||||
package net.kanawo.bcxmodern.block;
|
||||
package net.kanawo.cemodern.block;
|
||||
|
||||
import net.kanawo.bcxmodern.BCxModern;
|
||||
import net.kanawo.bcxmodern.gui.GuiHandler;
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.CEModern;
|
||||
import net.kanawo.cemodern.gui.GuiHandler;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -21,7 +21,7 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class BlockEMCBuilder extends BlockBuilder {
|
||||
|
||||
private static final String TEXTURE_PREFIX = BCxModern.MODID + ":emcbuilderBlock";
|
||||
private static final String TEXTURE_PREFIX = CEModern.MODID + ":emcbuilderBlock";
|
||||
|
||||
public BlockEMCBuilder() {
|
||||
super();
|
||||
@@ -68,7 +68,7 @@ public class BlockEMCBuilder extends BlockBuilder {
|
||||
boolean filledTank = builder != null
|
||||
&& TankUtils.handleRightClick(builder, ForgeDirection.UNKNOWN, player, true, false);
|
||||
if (!filledTank && !world.isRemote) {
|
||||
player.openGui(BCxModern.instance, GuiHandler.EMC_BUILDER, world, x, y, z);
|
||||
player.openGui(CEModern.instance, GuiHandler.EMC_BUILDER, world, x, y, z);
|
||||
}
|
||||
|
||||
return true;
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package net.kanawo.bcxmodern.block;
|
||||
package net.kanawo.cemodern.block;
|
||||
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
|
||||
import buildcraft.builders.schematics.SchematicBuilderLike;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package net.kanawo.bcxmodern.gui;
|
||||
package net.kanawo.cemodern.gui;
|
||||
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
package net.kanawo.bcxmodern.gui;
|
||||
package net.kanawo.cemodern.gui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.kanawo.bcxmodern.BCxModern;
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.CEModern;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
@@ -34,7 +34,7 @@ public class GuiEMCBuilder extends GuiAdvancedInterface {
|
||||
|
||||
/** BuildCraft's builder.png with the EMC consume slot added. */
|
||||
private static final ResourceLocation REGULAR_TEXTURE = new ResourceLocation(
|
||||
BCxModern.MODID,
|
||||
CEModern.MODID,
|
||||
"textures/gui/emcbuilder.png");
|
||||
private static final ResourceLocation BLUEPRINT_TEXTURE = new ResourceLocation(
|
||||
"buildcraftbuilders:textures/gui/builder_blueprint.png");
|
||||
@@ -69,7 +69,7 @@ public class GuiEMCBuilder extends GuiAdvancedInterface {
|
||||
|
||||
drawCenteredString(
|
||||
StatCollector.translateToLocalFormatted(
|
||||
"gui.bcxmodern.stored",
|
||||
"gui.cemodern.stored",
|
||||
Constants.EMC_FORMATTER.format(builder.getStoredEmc())),
|
||||
178 / 2,
|
||||
51,
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package net.kanawo.bcxmodern.gui;
|
||||
package net.kanawo.cemodern.gui;
|
||||
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package net.kanawo.bcxmodern.gui;
|
||||
package net.kanawo.cemodern.gui;
|
||||
|
||||
import net.kanawo.bcxmodern.tile.TileEMCBuilder;
|
||||
import net.kanawo.cemodern.tile.TileEMCBuilder;
|
||||
import net.minecraft.inventory.InventoryBasic;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package net.kanawo.bcxmodern.tile;
|
||||
package net.kanawo.cemodern.tile;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -12,13 +12,13 @@ import net.minecraft.world.storage.MapStorage;
|
||||
import net.minecraftforge.common.util.Constants;
|
||||
|
||||
/**
|
||||
* EMC stored for EMC Builders, one balance per player, saved with the world (data/bcxmodern_emc.dat). All
|
||||
* EMC stored for EMC Builders, one balance per player, saved with the world (data/cemodern_emc.dat). All
|
||||
* dimensions of a world share the same storage, so every EMC Builder a player owns in the world draws from the same
|
||||
* balance. Server side only.
|
||||
*/
|
||||
public class EmcPool extends WorldSavedData {
|
||||
|
||||
private static final String NAME = "bcxmodern_emc";
|
||||
private static final String NAME = "cemodern_emc";
|
||||
private static final double MAX_EMC = moze_intel.projecte.utils.Constants.TILE_MAX_EMC;
|
||||
|
||||
private final Map<UUID, Double> balances = new HashMap<>();
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package net.kanawo.bcxmodern.tile;
|
||||
package net.kanawo.cemodern.tile;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
tile.emcBuilder.name=EMC Builder
|
||||
gui.bcxmodern.stored=EMC: %s
|
||||
gui.cemodern.stored=EMC: %s
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
tile.emcBuilder.name=EMCビルダー
|
||||
gui.bcxmodern.stored=EMC: %s
|
||||
gui.cemodern.stored=EMC: %s
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -3,13 +3,13 @@
|
||||
"modList": [{
|
||||
"modid": "${modId}",
|
||||
"name": "${modName}",
|
||||
"description": "A Minecraft 1.7.10 port of BCx, a BuildCraft x Equivalent Exchange addon from the 1.2.5 era. Adds the EMC Builder, a BuildCraft Builder that pays for its materials with EMC.",
|
||||
"description": "A Minecraft 1.7.10 port of CE. Adds the EMC Builder, a BuildCraft Builder that pays for its materials with EMC.",
|
||||
"version": "${modVersion}",
|
||||
"mcversion": "${minecraftVersion}",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
"authorList": ["agomizi1cm"],
|
||||
"credits": "Original BCx for Minecraft 1.2.5. Built on BuildCraft and ProjectE.",
|
||||
"credits": "Original CE. Built on BuildCraft and ProjectE.",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"parent": "",
|
||||
|
||||
Reference in new issue
Block a user