Java源码示例:appeng.api.util.AECableType

示例1
@Override
public AECableType getCableConnectionType(ForgeDirection dir) {

    // if (node != null)
    // for (IGridNode n : node.getGrid().getNodes())
    // if (n.getMachine() instanceof IPartCable && getLocation().copy().add(dir, 1).equals(n.getGridBlock().getLocation()))
    // return n.getMachine().getCableConnectionType(dir.getOpposite());

    return AECableType.SMART;
}
 
示例2
@Override
public AECableType getCableConnectionType(ForgeDirection dir) {
	return original.getCableConnectionType(dir);
}
 
示例3
@Override
@Optional.Method(modid = ModIds.AE2)
public AECableType getCableConnectionType(ForgeDirection arg0){
    return AECableType.NONE;
}
 
示例4
/**
 * Determines how cables render when they connect to this block. Priority is
 * Smart > Covered > Glass
 * 
 * @param dir direction
 */
public AECableType getCableConnectionType(ForgeDirection dir);
 
示例5
/**
 * @return the Cable type.
 */
AECableType getCableConnectionType();
 
示例6
/**
 * Determines how cables render when they connect to this block. Priority is
 * Smart > Covered > Glass
 *
 * @param dir direction
 */
AECableType getCableConnectionType( ForgeDirection dir );
 
示例7
/**
 * @return the Cable type.
 */
AECableType getCableConnectionType();