Package erogenousbeef.bigreactors.common.multiblock.tileentity

Examples of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityReactorRedstonePort


    setCreativeTab(BigReactors.TAB);
  }
 
  @Override
  public TileEntity createNewTileEntity(World world, int metadata) {
    return new TileEntityReactorRedstonePort();
  }
View Full Code Here


    public void randomDisplayTick(World world, int x, int y, int z, Random par5Random)
    {
      TileEntity te = world.getTileEntity(x, y, z);
        if (te instanceof TileEntityReactorRedstonePort)
        {
          TileEntityReactorRedstonePort port = (TileEntityReactorRedstonePort)te;
          if(port.isRedstoneActive()) {
                ForgeDirection out = port.getOutwardsDir();
               
                if(out != ForgeDirection.UNKNOWN) {
                    double particleX, particleY, particleZ;
                    particleY = y + 0.45D + par5Random.nextFloat() * 0.1D;

 
View Full Code Here

  public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z, int side) {
    if(side == 0 || side == 1) { return REDSTONE_VALUE_OFF; }

    TileEntity te = world.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorRedstonePort) {
      TileEntityReactorRedstonePort port = (TileEntityReactorRedstonePort)te;
      if(port.isOutput())
        return port.isRedstoneActive() ? REDSTONE_VALUE_ON : REDSTONE_VALUE_OFF;
      else
        return REDSTONE_VALUE_OFF;
    }
   
    return REDSTONE_VALUE_OFF;
View Full Code Here

  @Override
  public RedNetConnectionType getConnectionType(World world, int x, int y,
      int z, ForgeDirection side) {
    TileEntity te = world.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorRedstonePort) {
      TileEntityReactorRedstonePort port = (TileEntityReactorRedstonePort)te;
      if(port.isConnected()) {
        return RedNetConnectionType.CableSingle;
      }
    }
    return RedNetConnectionType.None;
  }
View Full Code Here

  @Override
  public void onInputChanged(World world, int x, int y, int z,
      ForgeDirection side, int inputValue) {
    TileEntity te = world.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorRedstonePort) {
      TileEntityReactorRedstonePort port = (TileEntityReactorRedstonePort)te;
      port.onRedNetUpdate(inputValue);
    }
  }
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityReactorRedstonePort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.