Merge branch 'master' of https://github.com/calclavia/Assembly-Line.git
This commit is contained in:
commit
ef590bfa0b
4 changed files with 39 additions and 39 deletions
|
@ -1,4 +1,4 @@
|
|||
## Assembly Line
|
||||
|
||||
### Brief
|
||||
Assembly Line is a Minecraft mod that brings realistic factory style transportation systems into Minecraft.
|
||||
Assembly Line is a Minecraft mod that brings realistic factory style systems into Minecraft.
|
||||
|
|
|
@ -1,35 +1,35 @@
|
|||
package assemblyline.client.render;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderCrate implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
package assemblyline.client.render;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
|
||||
|
||||
public class RenderCrate implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block block, int metadata, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldRender3DInInventory()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderId()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ public abstract class TileEntityAssemblyNetwork extends TileEntityElectricityRec
|
|||
|
||||
protected ElectricityPack getRequest()
|
||||
{
|
||||
return new ElectricityPack(15, this.getVoltage());
|
||||
return new ElectricityPack(10, this.getVoltage());
|
||||
}
|
||||
|
||||
protected int getMaxTransferRange()
|
||||
|
|
|
@ -118,9 +118,9 @@ public class TileEntityConveyorBelt extends TileEntityAssemblyNetwork implements
|
|||
PacketManager.sendPacketToClients(this.getDescriptionPacket());
|
||||
}
|
||||
|
||||
if (this.isRunning())
|
||||
if (this.isRunning()&& this.worldObj.isRemote)
|
||||
{
|
||||
if (this.ticks % (10) == 0) //sound is 0.5 seconds long (20 ticks/second)
|
||||
if (this.ticks % (10) == 0 ) //sound is 0.5 seconds long (20 ticks/second)
|
||||
Minecraft.getMinecraft().sndManager.playSound("assemblyline.conveyor", this.xCoord, this.yCoord, this.zCoord, 0.125f, 0.3f);
|
||||
|
||||
this.wheelRotation += 40;
|
||||
|
|
Loading…
Reference in a new issue