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:
agomizi1cmandClaude Opus 5.5 committed 2026-10-27 10:22:15 +09:00
1 parent 28b1841c2a
commit af0afcb98f
20 files changed
+49 -49

No files matched your search

@@ -0,0 +1,34 @@
package net.kanawo.cemodern.gui;
import net.kanawo.cemodern.tile.TileEMCBuilder;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
public class GuiHandler implements IGuiHandler {
public static final int EMC_BUILDER = 0;
@Override
public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
TileEMCBuilder builder = getBuilder(id, world, x, y, z);
return builder == null ? null : new ContainerEMCBuilder(player.inventory, builder);
}
@Override
public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
TileEMCBuilder builder = getBuilder(id, world, x, y, z);
return builder == null ? null : new GuiEMCBuilder(player.inventory, builder);
}
private static TileEMCBuilder getBuilder(int id, World world, int x, int y, int z) {
if (id != EMC_BUILDER || !world.blockExists(x, y, z)) {
return null;
}
TileEntity tile = world.getTileEntity(x, y, z);
return tile instanceof TileEMCBuilder ? (TileEMCBuilder) tile : null;
}
}