From 70c1354a4a96698758a88c032866288f79de6f5a Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Sat, 24 Aug 2024 08:16:37 -0400 Subject: Initial commit --- src/main/java/jp/plusplus/fbs/ProxyServer.java | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/java/jp/plusplus/fbs/ProxyServer.java (limited to 'src/main/java/jp/plusplus/fbs/ProxyServer.java') diff --git a/src/main/java/jp/plusplus/fbs/ProxyServer.java b/src/main/java/jp/plusplus/fbs/ProxyServer.java new file mode 100644 index 0000000..5a21789 --- /dev/null +++ b/src/main/java/jp/plusplus/fbs/ProxyServer.java @@ -0,0 +1,51 @@ +package jp.plusplus.fbs; + +import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; +import jp.plusplus.fbs.storage.ChunkLoadManager; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.world.World; +import net.minecraftforge.common.ForgeChunkManager; + +/** + * Created by plusplus_F on 2015/01/31. + */ +public class ProxyServer { + + public World getClientWorld() { + return null; + } + public void register() { + + Registry.RegisterOreDictionary(); + Registry.RegisterCraftingRecipes(); + Registry.RegisterChestContents(); + Registry.RegisterEntities(); + Registry.RegisterTileEntities(); + Registry.RegisterPotion(); + Registry.RegisterWorldGen(); + + registerAchievement(); + + ForgeChunkManager.setForcedChunkLoadingCallback(FBS.instance, ChunkLoadManager.instance()); + } + public int registerRenderer(ISimpleBlockRenderingHandler renderer){ + return -1; + } + public void registerAchievement(){ + //AchievementChecker.register(); + } + + public void loadNEI(){} + public EntityPlayer getEntityPlayerInstance(){ + return null; + } + + // なんでクラスそのものにCLIENT限定とかつけてんの? + public float getRenderPartialTicks(){ + return 0; + } + public void setRenderPartialTicks(float f){ + } + public void updateTimer(){ + } +} -- cgit v1.2.3