mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-09 21:42:52 +00:00

Added the complete source code to ComputerCraft 1.79 for Minecraft 1.8.9, plus newly written README and LICENSE files for the open source release.
107 lines
2.2 KiB
Java
107 lines
2.2 KiB
Java
/**
|
|
* This file is part of ComputerCraft - http://www.computercraft.info
|
|
* Copyright Daniel Ratcliffe, 2011-2016. Do not distribute without permission.
|
|
* Send enquiries to dratcliffe@gmail.com
|
|
*/
|
|
|
|
package dan200.computercraft.server.proxy;
|
|
|
|
import dan200.computercraft.ComputerCraft;
|
|
import dan200.computercraft.shared.computer.blocks.TileComputer;
|
|
import dan200.computercraft.shared.peripheral.diskdrive.TileDiskDrive;
|
|
import dan200.computercraft.shared.peripheral.printer.TilePrinter;
|
|
import dan200.computercraft.shared.proxy.ComputerCraftProxyCommon;
|
|
import dan200.computercraft.shared.turtle.blocks.TileTurtle;
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
import net.minecraft.util.BlockPos;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.common.DimensionManager;
|
|
|
|
import java.io.File;
|
|
|
|
public class ComputerCraftProxyServer extends ComputerCraftProxyCommon
|
|
{
|
|
public ComputerCraftProxyServer()
|
|
{
|
|
}
|
|
|
|
// IComputerCraftProxy implementation
|
|
|
|
@Override
|
|
public void init()
|
|
{
|
|
super.init();
|
|
}
|
|
|
|
@Override
|
|
public Object getTurtleGUI( InventoryPlayer inventory, TileTurtle turtle )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public boolean isClient()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean getGlobalCursorBlink()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public long getRenderFrame()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public Object getFixedWidthFontRenderer()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void playRecord( String record, String recordInfo, World world, BlockPos pos )
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public Object getDiskDriveGUI( InventoryPlayer inventory, TileDiskDrive drive )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getComputerGUI( TileComputer computer )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getPrinterGUI( InventoryPlayer inventory, TilePrinter printer )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getPrintoutGUI( InventoryPlayer inventory )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public Object getPocketComputerGUI( InventoryPlayer inventory )
|
|
{
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public File getWorldDir( World world )
|
|
{
|
|
return new File( ComputerCraft.getBaseDir(), DimensionManager.getWorld(0).getSaveHandler().getWorldDirectoryName() );
|
|
}
|
|
}
|